From: Charlie Savage Date: 2009-03-10T11:56:45+09:00 Subject: [ruby-core:22793] [Bug #1259] Fix array.c compiler warnings Bug #1259: Fix array.c compiler warnings http://redmine.ruby-lang.org/issues/show/1259 Author: Charlie Savage Status: Open, Priority: Normal Category: core, Target version: 1.9.1 ruby -v: ruby 1.9.2dev (2009-03-06) [i386-mswin32_90] Attached patch fixes array.c compiler warnings with vc2008. cl -nologo -nologo -MD -RTC1 -Zi -Od -W3 -wd4996 -Od -Zm600 -DRUBY_EXPORT -I. -I.ext/include/i386-mswin32_90 -I./../include -I./.. -I./../missing -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -I. -I./.. -I./../missing -IC:\Development\msvc\include -DLIBRUBY_SO=\"ruby19.dll\" -Foarray.obj -c -Tc./../array.c array.c ./../array.c(184) : warning C4018: '>=' : signed/unsigned mismatch ./../array.c(1223) : warning C4018: '>' : signed/unsigned mismatch ./../array.c(2511) : warning C4018: '>' : signed/unsigned mismatch ./../array.c(2623) : warning C4018: '<' : signed/unsigned mismatch ./../array.c(3386) : warning C4244: 'initializing' : conversion from 'double' to 'long', possible loss of data ./../array.c(3435) : warning C4244: '=' : conversion from 'double' to 'long', possible loss of data ./../array.c(3448) : warning C4244: '=' : conversion from 'double' to 'long', possible loss of data ./../array.c(3449) : warning C4244: '=' : conversion from 'double' to 'long', possible loss of data ./../array.c(3453) : warning C4244: '=' : conversion from 'double' to 'long', possible loss of data ./../array.c(3454) : warning C4244: '=' : conversion from 'double' to 'long', possible loss of data ./../array.c(3455) : warning C4244: '=' : conversion from 'double' to 'long', possible loss of data ./../array.c(3465) : warning C4244: '=' : conversion from 'double' to 'long', possible loss of data ./../array.c(3467) : warning C4244: '=' : conversion from 'double' to 'long', possible loss of data ---------------------------------------- http://redmine.ruby-lang.org