about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-05-14 23:40:15 +0000
committerEric Wong <normalperson@yhbt.net>2011-05-14 23:40:15 +0000
commit3f48e6f17214e710893ade129f55ebb736131d28 (patch)
tree5d2e9d7211c37d3a56cb7e345b2658c2cb185329
parentb4fb19080d6ed8ad9903a888fa3b33fcb6fd1a98 (diff)
downloadsleepy_penguin-3f48e6f17214e710893ade129f55ebb736131d28.tar.gz
Yes, people still use 32-bit machines
-rw-r--r--ext/sleepy_penguin/eventfd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/sleepy_penguin/eventfd.c b/ext/sleepy_penguin/eventfd.c
index c4ce507..d291bff 100644
--- a/ext/sleepy_penguin/eventfd.c
+++ b/ext/sleepy_penguin/eventfd.c
@@ -157,7 +157,7 @@ void sleepy_penguin_init_eventfd(void)
          * the maximum value that may be stored in an EventFD,
          * currently 0xfffffffffffffffe
          */
-        rb_define_const(cEventFD, "MAX", ULL2NUM(0xfffffffffffffffe));
+        rb_define_const(cEventFD, "MAX", ULL2NUM(0xfffffffffffffffeULL));
 
 #ifdef EFD_NONBLOCK
         NODOC_CONST(cEventFD, "NONBLOCK", INT2NUM(EFD_NONBLOCK));