Skip to content

Commit 0aec54d

Browse files
committed
JIT: Fix floating point constants
1 parent ff93965 commit 0aec54d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
Add fast path to xIntArray.indexOf
2727
Add median-of-3 for Array.sort (1/3 of the compares for pre-sorted data)
2828
Fix escape characters in strings inside templates inside templated strings `${"\n"}`
29+
JIT: Fix floating point constants
2930

3031
2v27 : nRF5x: Ensure Bluetooth notifications work correctly when two separate connections use the same handle for their characteristics
3132
nRF5x: Remove handlers from our handlers array when a device is disconnected

src/jsjitc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,8 @@ void jsjcLiteral32(int reg, uint32_t data) {
207207
}
208208

209209
void jsjcLiteral64(int reg, uint64_t data) {
210-
jsjcLiteral32(reg, (uint32_t)(data>>32));
211-
jsjcLiteral32(reg+1, (uint32_t)data);
210+
jsjcLiteral32(reg, (uint32_t)data);
211+
jsjcLiteral32(reg+1, (uint32_t)(data>>32));
212212
}
213213

214214
int jsjcLiteralString(int reg, JsVar *str, bool nullTerminate) {

0 commit comments

Comments
 (0)