X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Fsize_max.m4;h=0336f3af50ffaf03ba7e0e55d73f6cb7b6e264a3;hb=ecf3c116dd00cbe3e4a4ee205004770a3f60793f;hp=4fe81c7b0720b4ac3e0c0f05966732ec8e9a47d4;hpb=52aceb00a8ce321a73680b2d5890de75be23f29f;p=gnulib.git diff --git a/m4/size_max.m4 b/m4/size_max.m4 index 4fe81c7b0..0336f3af5 100644 --- a/m4/size_max.m4 +++ b/m4/size_max.m4 @@ -1,5 +1,5 @@ -# size_max.m4 serial 2 -dnl Copyright (C) 2003 Free Software Foundation, Inc. +# size_max.m4 serial 3 +dnl Copyright (C) 2003, 2005 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -26,9 +26,9 @@ Found it dnl than the type 'unsigned long'. dnl The _AC_COMPUTE_INT macro works up to LONG_MAX, since it uses 'expr', dnl which is guaranteed to work from LONG_MIN to LONG_MAX. - _AC_COMPUTE_INT([~(size_t)0 / 10], res_hi, + _AC_COMPUTE_INT([(size_t)~(size_t)0 / 10], res_hi, [#include ], result=?) - _AC_COMPUTE_INT([~(size_t)0 % 10], res_lo, + _AC_COMPUTE_INT([(size_t)~(size_t)0 % 10], res_lo, [#include ], result=?) _AC_COMPUTE_INT([sizeof (size_t) <= sizeof (unsigned int)], fits_in_uint, [#include ], result=?) @@ -48,7 +48,7 @@ Found it fi else dnl Shouldn't happen, but who knows... - result='~(size_t)0' + result='((size_t)~(size_t)0)' fi fi AC_MSG_RESULT([$result])