Open mulle-nat opened 4 months ago
if we're really committing to this catch overflow idea, don't we want it backing ncplane_create()
, and thus handling all ncplane
creations?
if we're really committing to this catch overflow idea, don't we want it backing
ncplane_create()
, and thus handling allncplane
creations?
nevermind, i think it is by virtue of being in ncplane_new_internal()
Just wondering, if I need to add some more comments here, or if everything is clear.
This is a better mergable #2767, but my fork got out of sync and there were superflous commits in there. Sorry for the inconvenience. Here's my original comment.
Adding to this: The old code caught overflow with large negative numbers, but this one will catch any kind of overflow. Also the code is easier to understand IMO.