Skip to content

Commit

Permalink
* include/ruby/ruby.h (UINT2NUM): fix ifdef condition for LLP64.
Browse files Browse the repository at this point in the history
  reported by Daniel Gutmanas.  [ruby-core:31778]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
akr committed Aug 22, 2010
1 parent 119da02 commit b25bda4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Sun Aug 22 09:08:02 2010 Tanaka Akira <[email protected]>

* include/ruby/ruby.h (UINT2NUM): fix ifdef condition for LLP64.
reported by Daniel Gutmanas. [ruby-core:31778]

Sun Aug 22 06:46:21 2010 Nobuyoshi Nakada <[email protected]>

* array.c (RAND_UPTO): macro for random number.
Expand Down
2 changes: 1 addition & 1 deletion include/ruby/ruby.h
Original file line number Diff line number Diff line change
Expand Up @@ -952,7 +952,7 @@ struct RBignum {
#define OBJ_FROZEN(x) (!!FL_TEST((x), FL_FREEZE))
#define OBJ_FREEZE(x) FL_SET((x), FL_FREEZE)

#if SIZEOF_INT < SIZEOF_VALUE
#if SIZEOF_INT < SIZEOF_LONG
# define INT2NUM(v) INT2FIX((int)(v))
# define UINT2NUM(v) LONG2FIX((unsigned int)(v))
#else
Expand Down

0 comments on commit b25bda4

Please sign in to comment.