ruby-changes:45713
From: shyouhei <ko1@a...>
Date: Mon, 6 Mar 2017 16:25:22 +0900 (JST)
Subject: [ruby-changes:45713] shyouhei:r57786 (trunk): LONG_LONG_MAX not always available
shyouhei 2017-03-06 16:25:18 +0900 (Mon, 06 Mar 2017) New Revision: 57786 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=57786 Log: LONG_LONG_MAX not always available I was not aware of cases when LONG_LONG_MAX is undefined. Sorry. Signed-off-by: Urabe, Shyouhei <shyouhei@r...> Modified files: trunk/internal.h Index: internal.h =================================================================== --- internal.h (revision 57785) +++ internal.h (revision 57786) @@ -127,7 +127,7 @@ extern "C" { https://github.com/ruby/ruby/blob/trunk/internal.h#L127 #define MUL_OVERFLOW_LONG_P(a, b) MUL_OVERFLOW_P(a, b) #define MUL_OVERFLOW_INT_P(a, b) MUL_OVERFLOW_P(a, b) #else -#define MUL_OVERFLOW_LONG_LONG_P(a, b) MUL_OVERFLOW_SIGNED_INTEGER_P(a, b, LONG_LONG_MIN, LONG_LONG_MAX) +#define MUL_OVERFLOW_LONG_LONG_P(a, b) MUL_OVERFLOW_SIGNED_INTEGER_P(a, b, LLONG_MIN, LLONG_MAX) #define MUL_OVERFLOW_LONG_P(a, b) MUL_OVERFLOW_SIGNED_INTEGER_P(a, b, LONG_MIN, LONG_MAX) #define MUL_OVERFLOW_INT_P(a, b) MUL_OVERFLOW_SIGNED_INTEGER_P(a, b, INT_MIN, INT_MAX) #endif -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/