c3c icon indicating copy to clipboard operation
c3c copied to clipboard

int.min behaves weirdly

Open cbuttner opened this issue 1 year ago • 1 comments

fn void int_min() {
  io::printn(int.min); // Prints -2147483648
  io::printn((float)int.min); // Prints positive 2147483648.0
  assert(int.min == -2147483648); // Assert violation
  assert((float)int.min == -2147483648.0f); // Assert violation
}

cbuttner avatar Feb 26 '24 13:02 cbuttner

Fixed, thank you!

lerno avatar Feb 26 '24 17:02 lerno

Thanks.

cbuttner avatar Apr 09 '24 13:04 cbuttner