diff options
Diffstat (limited to 'lang/v8/files/patch-src_conversions.h')
-rw-r--r-- | lang/v8/files/patch-src_conversions.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lang/v8/files/patch-src_conversions.h b/lang/v8/files/patch-src_conversions.h new file mode 100644 index 000000000000..bd594edb5935 --- /dev/null +++ b/lang/v8/files/patch-src_conversions.h @@ -0,0 +1,19 @@ +--- src/conversions.h.orig 2011-09-23 16:57:57.000000000 +0800 ++++ src/conversions.h 2011-09-23 16:58:09.000000000 +0800 +@@ -45,14 +45,14 @@ namespace internal { + const int kMaxSignificantDigits = 772; + + +-static bool isDigit(int x, int radix) { ++static inline bool isDigit(int x, int radix) { + return (x >= '0' && x <= '9' && x < '0' + radix) + || (radix > 10 && x >= 'a' && x < 'a' + radix - 10) + || (radix > 10 && x >= 'A' && x < 'A' + radix - 10); + } + + +-static double SignedZero(bool negative) { ++static inline double SignedZero(bool negative) { + return negative ? -0.0 : 0.0; + } + |