ext/RMagick/rminfo.c in rmagick-1.15.14 vs ext/RMagick/rminfo.c in rmagick-1.15.15

- old
+ new

@@ -1,6 +1,6 @@ -/* $Id: rminfo.c,v 1.45.2.2.2.2 2008/02/24 23:26:38 rmagick Exp $ */ +/* $Id: rminfo.c,v 1.45.2.2.2.3 2008/09/10 23:22:46 rmagick Exp $ */ /*============================================================================\ | Copyright (C) 2008 by Timothy P. Hunter | Name: rminfo.c | Author: Tim Hunter | Purpose: Info class method definitions for RMagick. @@ -384,11 +384,11 @@ break; default: rb_raise(rb_eArgError, "wrong number of arguments (%d for 2 or 3)", argc); } - if (2 + format_l + key_l > sizeof(ckey)) + if (2 + format_l + key_l > (int)sizeof(ckey)) { rb_raise(rb_eArgError, "%.20s:%.20s not defined - format or key too long", format, key); } (void) sprintf(ckey, "%s:%s", format, key); @@ -641,11 +641,11 @@ VALUE Info_dispose(VALUE self) { #if defined(HAVE_SETIMAGEOPTION) Info *info; - int x; + unsigned int x; ID dispose_id; const char *dispose; Data_Get_Struct(self, Info, info); @@ -682,11 +682,11 @@ { #if defined(HAVE_SETIMAGEOPTION) Info *info; DisposeType dispose; char *option; - int x; + unsigned int x; Data_Get_Struct(self, Info, info); if (NIL_P(disp)) { @@ -1851,10 +1851,10 @@ Extern: rm_info_new Purpose: provide a Info.new method for internal use Notes: takes no parameters, but runs the parm block if present */ VALUE -rm_info_new() +rm_info_new(void) { volatile VALUE info_obj; info_obj = Info_alloc(Class_Info); return Info_initialize(info_obj);