Fix unsafeCompare (#336)

This commit is contained in:
Max Graey
2018-11-19 13:23:45 +02:00
committed by Daniel Wirtz
parent 4944280cdc
commit 6393921c12
15 changed files with 1963 additions and 1861 deletions

View File

@ -689,7 +689,7 @@ export function dtoa_stream(buffer: usize, offset: usize, value: f64): u32 {
let sign = <i32>(value < 0);
let len = 8 + sign;
let source = changetype<usize>(select<String>("-Infinity", "Infinity", sign));
memory.copy(buffer + STRING_HEADER_SIZE, source, len << 1);
memory.copy(buffer + STRING_HEADER_SIZE, source + STRING_HEADER_SIZE, len << 1);
return len;
}
}