diff options
author | Shane Kearns <shane.kearns@accenture.com> | 2011-01-04 14:27:41 (GMT) |
---|---|---|
committer | Shane Kearns <shane.kearns@accenture.com> | 2011-01-04 14:28:27 (GMT) |
commit | 7acf710d661fbd57bf4054681a2a743c2ced8037 (patch) | |
tree | dc7540c13aa07679f7fdd43ed7836b5aef18d28d /tests | |
parent | ecc3a98255d5085f1f94dc51d9d36e9876b04981 (diff) | |
download | Qt-7acf710d661fbd57bf4054681a2a743c2ced8037.zip Qt-7acf710d661fbd57bf4054681a2a743c2ced8037.tar.gz Qt-7acf710d661fbd57bf4054681a2a743c2ced8037.tar.bz2 |
Fix link error on MacOS
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qfile/tst_qfile.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/qfile/tst_qfile.cpp b/tests/auto/qfile/tst_qfile.cpp index 18478e3..c7d6fab 100644 --- a/tests/auto/qfile/tst_qfile.cpp +++ b/tests/auto/qfile/tst_qfile.cpp @@ -3349,7 +3349,7 @@ void tst_QFile::autocloseHandle() Q_UNUSED(a); //file is closed, read should fail char buf; - QCOMPARE(QT_READ(fd, &buf, 1), -1); + QCOMPARE((int)QT_READ(fd, &buf, 1), -1); QVERIFY(errno = EBADF); } @@ -3361,7 +3361,7 @@ void tst_QFile::autocloseHandle() QCOMPARE(file.handle(), -1); //file is not closed, read should succeed char buf; - QCOMPARE(QT_READ(fd_, &buf, 1), 1); + QCOMPARE((int)QT_READ(fd_, &buf, 1), 1); ::close(fd_); fd_ = -1; } @@ -3378,7 +3378,7 @@ void tst_QFile::autocloseHandle() Q_UNUSED(a); //file is closed, read should fail char buf; - QCOMPARE(QT_READ(fd, &buf, 1), -1); //not using fread because the FILE* was freed by fclose + QCOMPARE((int)QT_READ(fd, &buf, 1), -1); //not using fread because the FILE* was freed by fclose } { |