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

View File

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

View File

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

View File

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