Skip to contentSkip to conversation

Fix compilation of check-qint.c by using a long long integer constant

PATCH Superseded Pierre Riteau 1 participant 2 messages Sep 4, 2009

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix compilation of check-qint.c by using a long long integer constant

Error was:
check-qint.c:46: error: integer constant is too large for 'long' type

---
 check-qint.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
check-qint.c +1 -1
index ae5d22f..b931d47 100644
@@ -43,7 +43,7 @@ END_TEST
 START_TEST(qint_from_int64_test)
 {
     QInt *qi;
-    const int64_t value = 0xffffffffffffffff;
+    const int64_t value = 0xfffffffffffffffLL;
 
     qi = qint_from_int(value);
     fail_unless(qi->value == value);
Signature · 1 line
1.5.6.5
#1 lore raw
Quoted 24 lines · Pierre Riteau

Error was:
check-qint.c:46: error: integer constant is too large for 'long' type
---
check-qint.c | 2 +-

1 files changed, 1 insertions(+), 1 deletions(-)
check-qint.c +1 -1
index ae5d22f..b931d47 100644
@@ -43,7 +43,7 @@ END_TEST
 START_TEST(qint_from_int64_test)
 {
    QInt *qi;
-    const int64_t value = 0xffffffffffffffff;
+    const int64_t value = 0xfffffffffffffffLL;
 
    qi = qint_from_int(value);
    fail_unless(qi->value == value);
Signature · 1 line
1.5.6.5

Please disregard this version as I erased a character by mistake. New version sent to the list already.

Signature · 1 line
Pierre Riteau -- http://perso.univ-rennes1.fr/pierre.riteau/