(Resending to list since bugs@ ate my email and refused to add it to RT.)

On Sun, 14 Jan 2007, Egor Vyscrebentsov wrote:
Line is:
 if (fwrite(buf, 1, result, scan->meta.fp) < 0) {

so I can't decide is this freeciv problem or gcc.

fwrite returns a size_t, which is unsigned. It makes no sense to check if it is below zero, so I am guessing the compiler optimized away the check.

Perhaps this should be a check of equal to zero instead?

  - Per

Freeciv-dev mailing list

Reply via email to