Open litlighilit opened 1 week ago
!nim js
echo 1'i64 / 2'i64
0 (0 bytes)
```cpp
```
2024-06-20T15:47:26
2024-06-20T15:47:26
now
0 (0 bytes)
```cpp
```
2024-06-20T15:47:27
2024-06-20T15:47:27
now
0 (0 bytes)
```cpp
```
2024-06-20T15:47:30
2024-06-20T15:47:30
now
0 (0 bytes)
```cpp
```
2024-06-20T15:47:33
2024-06-20T15:47:33
now
0 (0 bytes)
```cpp
```
2024-06-20T15:47:36
2024-06-20T15:47:36
0 (0 bytes)
```cpp
```
2024-06-20T15:47:39
2024-06-20T15:47:39
now
0 (0 bytes)
```cpp
```
2024-06-20T15:47:41
2024-06-20T15:47:41
now
0 (0 bytes)
```cpp
```
2024-06-20T15:47:44
2024-06-20T15:47:44
now
11.4.0
14.0.0
20.3
2024-06-20T15:40:49Z
1
nim js -d:nodejs -d:nimExperimentalAsyncjsThen -d:nimExperimentalJsfetch --run -d:nimDebug -d:nimDebugDlOpen -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --verbosity:0 --hints:off --lineTrace:off --nimcache:/home/runner/work/Nim/Nim --out:/home/runner/work/Nim/Nim/temp /home/runner/work/Nim/Nim/temp.nim
:robot: Bug found in 21 minutes
bisecting 8
commits at 0
commits per second
not sure why in C backend it compiles,
as I found no /
for int64, there seems to be only int/int in system.
not sure why in C backend it compiles,\n\nas I found no / for int64, there seems to be only int/int in system.
It compiles in C backend because, at least in x64 the operators of /
is converted to int
first, a.k.a. that's rewriten roughly as:
echo int(1.int64) / int(2.int64)
donno what will happened on 32 bit machine. 🤔
Description
the following compiles for C backend but not JS:
or
Nim Version
from 1.6.14, 2.0.6 to 2.1.1
Current Output
Expected Output
Possible Solution
No response
Additional Information
No response