* pack.c (QUAD_SIZE): it should be always 8.
* bignum.c (rb_quad_pack): use LONG_LONG version only if SIZEOF_LONG_LONG == QUAD_SIZE. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d191b742bd
commit
07298aba22
@ -1,3 +1,10 @@
|
|||||||
|
Fri Feb 26 20:07:48 2010 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
|
* pack.c (QUAD_SIZE): it should be always 8.
|
||||||
|
|
||||||
|
* bignum.c (rb_quad_pack): use LONG_LONG version only if
|
||||||
|
SIZEOF_LONG_LONG == QUAD_SIZE.
|
||||||
|
|
||||||
Fri Feb 26 16:49:29 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Fri Feb 26 16:49:29 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* pack.c (swap64): fix for VC6.
|
* pack.c (swap64): fix for VC6.
|
||||||
|
6
bignum.c
6
bignum.c
@ -304,7 +304,9 @@ rb_int2inum(SIGNED_VALUE n)
|
|||||||
return rb_int2big(n);
|
return rb_int2big(n);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if SIZEOF_BDIGITS*2 == SIZEOF_LONG_LONG
|
#define QUAD_SIZE 8
|
||||||
|
|
||||||
|
#if SIZEOF_LONG_LONG == QUAD_SIZE && SIZEOF_BDIGITS*2 == SIZEOF_LONG_LONG
|
||||||
|
|
||||||
void
|
void
|
||||||
rb_quad_pack(char *buf, VALUE val)
|
rb_quad_pack(char *buf, VALUE val)
|
||||||
@ -374,8 +376,6 @@ rb_quad_unpack(const char *buf, int sign)
|
|||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
#define QUAD_SIZE 8
|
|
||||||
|
|
||||||
void
|
void
|
||||||
rb_quad_pack(char *buf, VALUE val)
|
rb_quad_pack(char *buf, VALUE val)
|
||||||
{
|
{
|
||||||
|
6
pack.c
6
pack.c
@ -266,11 +266,7 @@ num2i32(VALUE x)
|
|||||||
return 0; /* not reached */
|
return 0; /* not reached */
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_LONG_LONG
|
#define QUAD_SIZE 8
|
||||||
# define QUAD_SIZE SIZEOF_LONG_LONG
|
|
||||||
#else
|
|
||||||
# define QUAD_SIZE 8
|
|
||||||
#endif
|
|
||||||
static const char toofew[] = "too few arguments";
|
static const char toofew[] = "too few arguments";
|
||||||
|
|
||||||
static void encodes(VALUE,const char*,long,int,int);
|
static void encodes(VALUE,const char*,long,int,int);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user