News for hackers. Stuff that matters.
Re:Show HN: Whole Git repo was made with ChatGPT by wizzwizz4 on Sunday December 04, 2022 @09:20PM (#33860628)
> > 1. The function dev_write() is declared as returning ssize_t, but the return value at the end of the function is sizeof(int). ssize_t and size_t are different types, so this could cause a type mismatch.

> This is an interesting observation that you and I both missed.

Hah. Call me when you find an architecture where ints use over half the addressable memory.

Re:Show HN: Whole Git repo was made with ChatGPT by wizeman on Sunday December 04, 2022 @10:05PM (#33860961)
> Hah. Call me when you find an architecture where ints use over half the addressable memory.

I mean, I get your point if it's a joke :) But I think the AI was just pointing out that you'd get a compiler warning because of the type mismatch in signedness (is this even a word?).

Re:Show HN: Whole Git repo was made with ChatGPT by int_19h on Monday December 05, 2022 @09:28PM (#33875121)
It's the small negative numbers that bite you there when they undergo unsigned overflow.