From 134fe52a850a9d53214c9c539fbe496aa8d11176 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Mon, 20 Jun 2011 00:45:18 +0200 Subject: [PATCH] Placate GCC in `test-ffi-lib.c'. This fixes warnings saying "this decimal constant is unsigned only in ISO C90". * test-suite/standalone/test-ffi-lib.c (test_ffi_u32_, test_ffi_u32_u8, test_ffi_u32_s64, test_ffi_s64_s64, test_ffi_u64_u8, test_ffi_u64_s64): Mark constants as unsigned. --- test-suite/standalone/test-ffi-lib.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/test-suite/standalone/test-ffi-lib.c b/test-suite/standalone/test-ffi-lib.c index a89b6aa94..37d6e43cc 100644 --- a/test-suite/standalone/test-ffi-lib.c +++ b/test-suite/standalone/test-ffi-lib.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2010 Free Software Foundation, Inc. +/* Copyright (C) 2010, 2011 Free Software Foundation, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License @@ -132,19 +132,19 @@ scm_t_int32 test_ffi_s32_s64 (scm_t_int64 a) scm_t_uint32 test_ffi_u32_ (void); scm_t_uint32 test_ffi_u32_ (void) { - return 4000000000; + return 4000000000U; } scm_t_uint32 test_ffi_u32_u8 (scm_t_uint8 a); scm_t_uint32 test_ffi_u32_u8 (scm_t_uint8 a) { - return 4000000000 + a; + return 4000000000U + a; } scm_t_uint32 test_ffi_u32_s64 (scm_t_int64 a); scm_t_uint32 test_ffi_u32_s64 (scm_t_int64 a) { - return 4000000000 + a; + return 4000000000U + a; } /* FIXME: use 64-bit literals */ @@ -169,19 +169,19 @@ scm_t_int64 test_ffi_s64_s64 (scm_t_int64 a) scm_t_uint64 test_ffi_u64_ (void); scm_t_uint64 test_ffi_u64_ (void) { - return 4000000000; + return 4000000000UL; } scm_t_uint64 test_ffi_u64_u8 (scm_t_uint8 a); scm_t_uint64 test_ffi_u64_u8 (scm_t_uint8 a) { - return 4000000000 + a; + return 4000000000UL + a; } scm_t_uint64 test_ffi_u64_s64 (scm_t_int64 a); scm_t_uint64 test_ffi_u64_s64 (scm_t_int64 a) { - return 4000000000 + a; + return 4000000000UL + a; }