diff options
author | Mike Pall <mike> | 2011-01-02 18:24:31 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2011-01-02 18:24:31 +0100 |
commit | 0005b2c2b91d3d3c115b1e5d12b32715c0ea77a6 (patch) | |
tree | 8a745a631db9c6954fd22f248ddcf2c9b2022a3b /src/lj_obj.h | |
parent | ddfa7fc246569f2fb7a664efcca73ac0e047d876 (diff) | |
download | luajit-0005b2c2b91d3d3c115b1e5d12b32715c0ea77a6.tar.gz luajit-0005b2c2b91d3d3c115b1e5d12b32715c0ea77a6.tar.bz2 luajit-0005b2c2b91d3d3c115b1e5d12b32715c0ea77a6.zip |
Add support for uint64_t <-> FP conversions to x64 backend.
Diffstat (limited to '')
-rw-r--r-- | src/lj_obj.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lj_obj.h b/src/lj_obj.h index 456aef0b..342ebafb 100644 --- a/src/lj_obj.h +++ b/src/lj_obj.h | |||
@@ -767,8 +767,7 @@ static LJ_AINLINE uint64_t lj_num2u64(lua_Number n) | |||
767 | { | 767 | { |
768 | #ifdef _MSC_VER | 768 | #ifdef _MSC_VER |
769 | if (n >= 9223372036854775808.0) /* They think it's a feature. */ | 769 | if (n >= 9223372036854775808.0) /* They think it's a feature. */ |
770 | return (uint64_t)(int64_t)(n - 9223372036854775808.0) + | 770 | return (uint64_t)(int64_t)(n - 18446744073709551616.0); |
771 | U64x(80000000,00000000); | ||
772 | else | 771 | else |
773 | #endif | 772 | #endif |
774 | return (uint64_t)n; | 773 | return (uint64_t)n; |