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

Comment by patrec

3 years ago

Why would it need overflow checks when subtracting two valid pointers?

2 comments

patrec

Reply

saagarjha  3 years ago

The overflow is in size * count

  • patrec  3 years ago

    Of course -- thanks!

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities