karolherbst , Englisch
@karolherbst@chaos.social avatar

"range end index 4145152 out of range for slice of length 1048572"

now one might think "aha! classic OOB access"

but it might be something else instead!

4145152 == 0x3f4000, which might actually be 0x3f400000 >> 8, which is 0.75 🙃

but don't know, haven't debugged it yet.

leftmostcat ,
@leftmostcat@hachyderm.io avatar

@karolherbst Why do I now want to write a container in Rust which can be indexed with a floating point value? What is wrong with me?

karolherbst OP ,
@karolherbst@chaos.social avatar

@leftmostcat will it be rounded or is it a probability between which of two neighbors will be chosen by the hardware?

1ace ,
@1ace@mastodon.gamedev.place avatar
  • Alle
  • Abonniert
  • Moderiert
  • Favoriten
  • random
  • haupteingang
  • Alle Magazine