You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was playing around with Odin last night (I love what you have done so far) and noticed a bug in trying to print the value -1 using fmt.print and fmt.println. The value produced was -18,446,744,073,709,551,615. I am using v0.0.6 of the compiler btw in case this has since been fixed. It may just be a conversion error in the printing functions since I used the value containing -1 elsewhere in other expressions and everything worked fine.
FYI: I just tried it again this morning and the error still occurs. It looks like it is happening with negative values in general. I didn't test too many numbers but thought I should update my comment.
The text was updated successfully, but these errors were encountered:
kevinend
changed the title
Error printing -1 with fmt.println and fmt.print
Error printing negative values with fmt.println and fmt.print
Feb 8, 2017
Hey Bill,
I was playing around with Odin last night (I love what you have done so far) and noticed a bug in trying to print the value -1 using fmt.print and fmt.println. The value produced was -18,446,744,073,709,551,615. I am using v0.0.6 of the compiler btw in case this has since been fixed. It may just be a conversion error in the printing functions since I used the value containing -1 elsewhere in other expressions and everything worked fine.
FYI: I just tried it again this morning and the error still occurs. It looks like it is happening with negative values in general. I didn't test too many numbers but thought I should update my comment.
The text was updated successfully, but these errors were encountered: