Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library

Comment by uecker

2 months ago

Singed integers in C do not implement modular arithmetic. You can trust me on this.

3 comments

uecker

Reply

Chinjut  2 months ago

I'd trust you a lot more if you actually pointed out something wrong with my statement.

  • uecker  2 months ago

    It is wrong that signed types in C implement modular arithmetic. They have undefined behavior on overflow.

    • Chinjut  2 months ago

      I see. That is fair, thank you for pointing this out to me.

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities