Project

General

Profile

Actions

Bug #1259

closed

Fix array.c compiler warnings

Added by cfis (Charlie Savage) almost 16 years ago. Updated over 13 years ago.

Status:
Closed
Assignee:
-
Target version:
ruby -v:
ruby 1.9.2dev (2009-03-06) [i386-mswin32_90]
Backport:
[ruby-core:22793]

Description

=begin
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
=end


Files

array.patch (1.84 KB) array.patch cfis (Charlie Savage), 03/10/2009 11:58 AM
Actions

Also available in: Atom PDF

Like0
Like0