THREAD NAVIGATION:  
    Where am I?   Original message   Top of thread   Current page 
Displays all thread messages Displays thread map That to which this responds This thread's lead message Your most recent Tavern page

I guess that attribute overflow has never been observed...
10/09/2021, 11:29:51

    Ramillies writes:

    but there aren't many possibilities. I'd guess that the attributes are stored in 16-bit integers, which means that the maximum value can either be 32767 (if you add one, you roll over to -32768) for a signed integer, or 65535 (with rollover to 0) for an unsigned one.

    Or, if they are stored in 32-bit integers, which is also quite possible, the overflow would occur for ~ 2.147 billion (for signed), or ~ 4.254 billion (for unsigned).

    So, to be short: I don't think you need to worry about it. Even 32768 is pretty much unreachable, and the others so much more so.





Reply to this message   Back to the Tavern  

Replies to this message