466
you are viewing a single comment's thread
view the rest of the comments
[-] a14o@feddit.org 52 points 11 months ago

To fix this, add if(num == 255) return true; before line 10.

[-] CannonFodder@lemmy.world 25 points 11 months ago

Peak efficiency there.

But use 2147483647 to be safe.

this post was submitted on 12 Sep 2025
466 points (98.7% liked)

Programmer Humor

33049 readers
1482 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 3 years ago
MODERATORS