kripken/emscripten — Issue #127: double * (u)int64_t multiplications are broken in I64_MODE
Author: bemasc
Created: 2011-11-27 19:23:52+00:00
State: open

Input C:

```c
#include
#include
#include

int main(int argc, char** argv) {
uint64_t a = 5;
double b = 6.8;
uint64_t c = a * b;

printf("Product is %llu\n", c);
return 0;
}
```
Output in v8 when compiled with I64_MODE=0

Product is 34

Output in v8 when compiled with I64_MODE=1

test.js:1345: TypeError: Object 34 has no method 'slice'
(HEAP[$c]=$conv1.slice(0).slice(0)[0],HEAP[$c+4]=$conv1.slice(0).slice(0)[
^
TypeError: Object 34 has no method 'slice'
at _main (test.js:1345:22)