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 don't think we should fix this, actually. It's one of the cases where Go compiler detects a legit mistake in the code (float part is silently dropped in C in this case).
Source C code:
Translated Go code:
Go Build Failure at type casting
Root Cause:
Direct type conversion from
float
toint
is illegal in Go. It should be an explicit conversion.The text was updated successfully, but these errors were encountered: