mirror of
https://gitlab.com/suyu-emu/suyu.git
synced 2024-03-15 23:15:44 +00:00
citra-qt: Use std::abs() to get the right absolute function for s64.
This commit is contained in:
parent
0d69b2f7bd
commit
d9eb7ca95c
|
@ -29,6 +29,7 @@
|
||||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
|
#include <cstdlib>
|
||||||
#include <QLineEdit>
|
#include <QLineEdit>
|
||||||
#include <QRegExpValidator>
|
#include <QRegExpValidator>
|
||||||
|
|
||||||
|
@ -206,7 +207,7 @@ QString CSpinBox::TextFromValue()
|
||||||
{
|
{
|
||||||
return prefix
|
return prefix
|
||||||
+ QString(HasSign() ? ((value < 0) ? "-" : "+") : "")
|
+ QString(HasSign() ? ((value < 0) ? "-" : "+") : "")
|
||||||
+ QString("%1").arg(abs(value), num_digits, base, QLatin1Char('0')).toUpper()
|
+ QString("%1").arg(std::abs(value), num_digits, base, QLatin1Char('0')).toUpper()
|
||||||
+ suffix;
|
+ suffix;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue