Skip to content

Commit

Permalink
Bignum.h: Fix darwin64 build...
Browse files Browse the repository at this point in the history
  • Loading branch information
okuoku committed Dec 20, 2012
1 parent 15f935e commit f51ba53
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions src/Bignum.h
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ class Bignum : public gc_cleanup
return 0;
}
}
static Object makeInteger(int32_t n)
static Object makeInteger(int n)
{
if (Fixnum::canFit(n)) {
// Valid as fixedint
Expand All @@ -703,7 +703,7 @@ class Bignum : public gc_cleanup
return Object::makeBignum(n);
}
}
static Object makeInteger(uint32_t n)
static Object makeInteger(unsigned int n)
{
if (Fixnum::canFitU(n)) {
// Valid as fixedint
Expand All @@ -712,7 +712,7 @@ class Bignum : public gc_cleanup
return Object::makeBignum(n);
}
}
static Object makeInteger(int64_t n)
static Object makeInteger(long int n)
{
if (Fixnum::canFit(n)) {
// Valid as fixedint
Expand All @@ -721,7 +721,25 @@ class Bignum : public gc_cleanup
return Object::makeBignum(n);
}
}
static Object makeInteger(uint64_t n)
static Object makeInteger(unsigned long int n)
{
if (Fixnum::canFitU(n)) {
// Valid as fixedint
return Object::makeFixnum((fixedint)n);
} else {
return Object::makeBignum(n);
}
}
static Object makeInteger(long long int n)
{
if (Fixnum::canFit(n)) {
// Valid as fixedint
return Object::makeFixnum((fixedint)n);
} else {
return Object::makeBignum(n);
}
}
static Object makeInteger(unsigned long long int n)
{
if (Fixnum::canFitU(n)) {
// Valid as fixedint
Expand Down

0 comments on commit f51ba53

Please sign in to comment.