Re: [PATCH] ruby/dl

From: Jeff Mitchell <quixoticsycophant@...>
Date: 2004-05-19 18:37:31 UTC
List: ruby-core #2909
Sorry I am new here.  I didn't realize -Wall -Wstrict-prototypes
were not in the default flags.
 
--- ext/dl/ptr.c.orig   2004-05-19 14:33:38.000000000 -0400
+++ ext/dl/ptr.c        2004-05-19 14:33:50.000000000 -0400
@@ -1016,7 +1016,8 @@
   VALUE key, val;
   key = rb_ary_entry(assoc, 0);
   val = rb_ary_entry(assoc, 1);
-  rb_yield(rb_assoc_new(ULONG2NUM(DLFIX2PTR(key)),(VALUE)DLNUM2LONG(val)));
+  rb_yield(rb_assoc_new(ULONG2NUM((unsigned long)DLFIX2PTR(key)),
+                        (VALUE)DLNUM2LONG(val)));
   return Qnil;
 }
 



	
		
__________________________________
Do you Yahoo!?
SBC Yahoo! - Internet access at a great low price.
http://promo.yahoo.com/sbc/

In This Thread