diff mbox

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

Message ID 1252083711-13099-1-git-send-email-Pierre.Riteau@irisa.fr
State Superseded
Headers show

Commit Message

Pierre Riteau Sept. 4, 2009, 5:01 p.m. UTC
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(-)

Comments

Pierre Riteau Sept. 4, 2009, 5:18 p.m. UTC | #1
On 4 sept. 09, at 19:01, Pierre Riteau wrote:

> 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(-)
>
> diff --git a/check-qint.c b/check-qint.c
> index ae5d22f..b931d47 100644
> --- a/check-qint.c
> +++ b/check-qint.c
> @@ -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);
> -- 
> 1.5.6.5
>
>
>


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

Patch

diff --git a/check-qint.c b/check-qint.c
index ae5d22f..b931d47 100644
--- a/check-qint.c
+++ b/check-qint.c
@@ -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);