-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Unsafe math operations #4261
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Sorry if I created the issue the wrong way. I'm new to Github Issues :) |
try it with the new compiler v0.1.26 please! |
V version: 0.1.26 4e01bf4.78440be More info: I did a build through ...
In that state I got the C error and an error on the direct division test. Then I ran ... The version number mentioned above is the one after the v up command. |
I obviously added the v command to path with ... |
thank you. the new error should be reproduceable. can you paste the new error which you get? |
Just for the record, I'm gonna repeat some of the information to some them up.
Compiler output:
|
Second experimentV version: V 0.1.26 4e01bf4.78440be
Compiler output (probably the same as last one):
|
Third experimentV version: V 0.1.26 4e01bf4.78440be
Compiler output: none (just successfully compiling)
|
That should be it. |
The Direct Division Test now (v 0.1.27) gives a V error as it should: mydiv := int(1/0) // error: division by zero. |
V version: 0.1.24
OS: Android 9, Termux (could have probably been any other)
What did you do?
What did you expect to see?
4 compiler errors/warnings and 4 runtime errors
What did you see instead?
1 compiler error (direct division test) and the program spitting out 7 wrong values to the screen.
(and a bunch of compiler warnings saying that "casting int to int is not needed")
The text was updated successfully, but these errors were encountered: