• madjo
    link
    fedilink
    English
    arrow-up
    10
    ·
    5 hours ago

    -1 days? (or 17, without the overflow)

    • tetris11@lemmy.ml
      link
      fedilink
      English
      arrow-up
      5
      ·
      edit-2
      5 hours ago

      Twos complement (invert the bits then add one), so its -15 days.

      Otherwise 00000 and 10000 would paradoxically both equal 0 and make bitwise equality checks very difficult.