fix minGw32

This commit is contained in:
a.yankovich 2019-07-25 14:08:19 +03:00
parent 9ebb2e79f9
commit 750ff3716f
3 changed files with 12 additions and 15 deletions

@ -15,8 +15,5 @@ include($$PWD/tests/test.pri)
src.file = src/GMP.pro
gcc {
SUBDIRS += tests
tests.file = tests/tests.pro
}
SUBDIRS += tests
tests.file = tests/tests.pro

@ -53,8 +53,8 @@ void mp_get_memory_functions (void *(**) (size_t),
void *(**) (void *, size_t, size_t),
void (**) (void *, size_t));
typedef unsigned long uIntMpz;
typedef long intMpz;
typedef unsigned long long uIntMpz;
typedef long long intMpz;
typedef uIntMpz mp_limb_t;
typedef intMpz mp_size_t;

@ -739,22 +739,22 @@ void arithmetictests::testOperators() {
QVERIFY(num1.sizeBytes() == 0);
num1 = 1;
QVERIFY(num1.sizeBytes() == sizeof (long));
QVERIFY(num1.sizeBytes() == sizeof (intMpz));
num1++;
QVERIFY(num1.sizeBytes() == sizeof (long));
QVERIFY(num1.sizeBytes() == sizeof (intMpz));
num1+= 0xFF;
QVERIFY(num1.sizeBytes() == sizeof (long));
QVERIFY(num1.sizeBytes() == sizeof (intMpz));
num1 += std::numeric_limits<long>::max();
num1 += std::numeric_limits<long>::max();
num1 += std::numeric_limits<intMpz>::max();
num1 += std::numeric_limits<intMpz>::max();
QVERIFY(num1.sizeBytes() == sizeof (long) * 2);
QVERIFY(num1.sizeBytes() == sizeof (intMpz) * 2);
num1 = 1;
QVERIFY(num1.sizeBytes() == sizeof (long));
QVERIFY(num1.sizeType() == sizeof (long) * 2);
QVERIFY(num1.sizeBytes() == sizeof (intMpz));
QVERIFY(num1.sizeType() == sizeof (intMpz) * 2);
}