• Cethin@lemmy.zip
    link
    fedilink
    English
    arrow-up
    3
    arrow-down
    2
    ·
    1 year ago

    It could be an overflow, or it could have set it to that value if something unexpected happens. Ints aren’t nullable (in most languages), so returning some fixed but never occurring value is useful. The fact that it is exactly that value makes me suspect that’s the case, not overflow.