<URL: http://bugs.freeciv.org/Ticket/Display.html?id=33568 >
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 Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev