Cleanup.
authorTilman Sauerbeck <tilman@code-monkey.de>
Thu, 28 Apr 2005 18:47:16 +0000 (18:47 +0000)
committerTilman Sauerbeck <tilman@code-monkey.de>
Thu, 28 Apr 2005 18:47:16 +0000 (18:47 +0000)
src/rb_edje.c

index 8e0f0b6cc0ea219ae659bf1d817a43b46b9d1e93..f91fab5e4dc7763c6d67936c8685c5090a774167 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: rb_edje.c 332 2005-04-28 18:37:16Z tilman $
+ * $Id: rb_edje.c 333 2005-04-28 18:47:16Z tilman $
  *
  * Copyright (C) 2004 Tilman Sauerbeck (tilman at code-monkey de)
  *
@@ -515,7 +515,7 @@ static VALUE c_send_message (VALUE self, VALUE msg)
 
        CHECK_CLASS (msg, cMsg);
 
-       id = NUM2INT (rb_iv_get (msg, "@id"));
+       id = FIX2INT (rb_iv_get (msg, "@id"));
        v = rb_iv_get (msg, "@value");
 
        type = get_msg_type (v);
@@ -649,7 +649,7 @@ static VALUE c_msg_init (int argc, VALUE *argv, VALUE self)
 
        Check_Type (id, T_FIXNUM);
 
-       rb_iv_set (self, "@id", UINT2NUM (id));
+       rb_iv_set (self, "@id", id);
        rb_iv_set (self, "@value", val);
 
        return self;