@Tacomelt You're thinking of an integer overflow. Also, that's not what happened. (If it had been an integer overflow, it would have reported that he was [max level - 1], but it properly told him he was [-1]) It just let his level be reduced lower than the starting level. Now, what bugs come from that, who knows.
@GodGinrai Unless there is some kind of raw casting done in calculations. Two's complement of -1 (int) is 0xFFFF... (whatever number of bits the integer is). Which is equal to the unsigned int maximum.
In any case, having a negative level is kinda dumb in the first place, any reasonable design would have had it as a unsigned integer for perf reasons.
@AbuHajaar Of course, but the game told him his level was "-1", and not "[max level]", which indicates the game is not using unsigned ints for its level calculations.
@GodGinrai External presentation can be done with a signed integer. Internal calculations, serialization, IPC calls can be done with uint or assumption of unsigned. Vice versa.
I have seen this happen before and it cost me 12 hours of my weekend. Software is never optimal lol.
@AbuHajaar You are not wrong, but this is not something that a webtoon author would think of with minimal research. And someone who truly understood the concept of an Integer overflow and decided to use it as a plot device wouldn't make such a simple mistake that would obfuscate things for the reader.
@GodGinrai
Webtoon author?
You realize this is a novel with over 800 chapters, and the same -1 thing is there too, there it's a bit more explained as to why.
@Filipe I was not aware there was a source material for this, no. Most webtoons I have come across don't really have source material. However, the fact you just stated only strengthens my conviction that it shouldn't be an integer overflow, since for a novel, you would expect the author to put more effort into their research and the means by which they convey their plot to their readers.
Just in case more people complain about this, the -1 is not a bug. It's when someone screws up so bad they have to level up just to be as good as a starting character. It's very unusual, but not unexpected.
There are in fact no bugs in the entire game/story so far since it's all automatically supervised and fixed by humanity's most advanced supercomputer.