[前][次][番号順一覧][スレッド一覧]

ruby-changes:32005

From: tmm1 <ko1@a...>
Date: Mon, 9 Dec 2013 08:07:49 +0900 (JST)
Subject: [ruby-changes:32005] tmm1:r44084 (trunk): vm.c: fix compile issue on 32bit freebsd

tmm1	2013-12-09 08:07:43 +0900 (Mon, 09 Dec 2013)

  New Revision: 44084

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44084

  Log:
    vm.c: fix compile issue on 32bit freebsd

  Modified files:
    trunk/internal.h
    trunk/vm.c
Index: internal.h
===================================================================
--- internal.h	(revision 44083)
+++ internal.h	(revision 44084)
@@ -252,10 +252,13 @@ struct rb_subclass_entry { https://github.com/ruby/ruby/blob/trunk/internal.h#L252
 
 #if defined(HAVE_LONG_LONG)
 typedef unsigned LONG_LONG rb_serial_t;
+#define SERIALT2NUM ULL2NUM
 #elif defined(HAVE_UINT64_T)
 typedef uint64_t rb_serial_t;
+#define SERIALT2NUM SIZET2NUM
 #else
 typedef unsigned long rb_serial_t;
+#define SERIALT2NUM ULONG2NUM
 #endif
 
 struct rb_classext_struct {
Index: vm.c
===================================================================
--- vm.c	(revision 44083)
+++ vm.c	(revision 44084)
@@ -163,9 +163,9 @@ ruby_vm_stat(int argc, VALUE *argv, VALU https://github.com/ruby/ruby/blob/trunk/vm.c#L163
 
 #define SET(name, attr) \
     if (key == sym_##name) \
-	return SIZET2NUM(attr); \
+	return SERIALT2NUM(attr); \
     else if (hash != Qnil) \
-	rb_hash_aset(hash, sym_##name, SIZET2NUM(attr));
+	rb_hash_aset(hash, sym_##name, SERIALT2NUM(attr));
 
     SET(method_serial, ruby_vm_method_serial);
     SET(constant_serial, ruby_vm_constant_serial);

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]