From: nobu@... Date: 2006-07-01T10:39:37+09:00 Subject: Re: Ruby 1.8.5 - warnings when compiled with Sun compiler Hi, At Sat, 1 Jul 2006 02:54:16 +0900, Daniel Berger wrote in [ruby-core:08113]: > "dir.c", line 963: warning: integer overflow detected: op "<<" > > It doesn't like something about rb_sys_warn(). Tracing through it, however, I > wasn't able to spot anything obvious. It would be GLOB_VERBOSE. Index: dir.c =================================================================== RCS file: /cvs/ruby/src/ruby/dir.c,v retrieving revision 1.92.2.34 diff -p -U 2 -r1.92.2.34 dir.c --- dir.c 17 May 2006 09:14:34 -0000 1.92.2.34 +++ dir.c 1 Jul 2006 01:38:26 -0000 @@ -807,5 +807,5 @@ sys_warning_1(mesg) } -#define GLOB_VERBOSE (1 << (sizeof(int) * CHAR_BIT - 1)) +#define GLOB_VERBOSE (1U << (sizeof(int) * CHAR_BIT - 1)) #define sys_warning(val) \ ((flags & GLOB_VERBOSE) && rb_protect((VALUE (*)_((VALUE)))sys_warning_1, (VALUE)(val), 0)) -- Nobu Nakada