summaryrefslogtreecommitdiff
path: root/time.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-11 14:40:16 (GMT)
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-11 14:40:16 (GMT)
commitb23d9a8a637e5e63a93ea6a620b3dab3450f15e2 (patch)
tree0c644db703bcc461e7b3adce7500be52f06877db /time.c
parentc4b12333f770039fa4f189b3ac9ca015707836c3 (diff)
* bignum.c (validate_integer_pack_format): Don't require a word order
flag if numwords is 1 or less. (absint_numwords_generic): Don't specify a word order for rb_integer_pack. * hash.c (rb_hash): Ditto. * time.c (v2w_bignum): Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41234 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'time.c')
-rw-r--r--time.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/time.c b/time.c
index 1916e76..f20d29e 100644
--- a/time.c
+++ b/time.c
@@ -302,8 +302,8 @@ v2w_bignum(VALUE v)
int sign;
uwideint_t u;
wideint_t i;
- sign = rb_integer_pack(v, &u, 1, sizeof(i), 0,
- INTEGER_PACK_LSWORD_FIRST|INTEGER_PACK_NATIVE_BYTE_ORDER);
+ sign = rb_integer_pack(v, &u, 1, sizeof(u), 0,
+ INTEGER_PACK_NATIVE_BYTE_ORDER);
if (sign == 0)
return WINT2FIXWV(0);
else if (sign == -1) {