Share

3D Mesh-To-Heightmap Generator

Tracker: Bugs

5 Fix parser on systems where char is unsigned (Patch included - ID: 2790574
Last Update: Attachment added ( tuxsoft )

On systems like PPC and Sparc a C "char" is unsigned by default.
So it can not hold the magic EOF that's returned by fgetc() on end-of-file,
because EOF usually is -1. So the parser fails to detect and end-of-file
condition on such systems.
The attached patch fixes this by using "int" for the "ch" variable.
(fgetc() also returns an "int" type)


Michael Buesch ( tuxsoft ) - 2009-05-12 10:41

5

Open

None

Nobody/Anonymous

None

None

Public


Comments




Log in to comment.

No follow-up comments have been posted.

Attached File ( 1 )

Filename Description Download
fix-not-enough-space-to-store-word.patch Patch Download

Change ( 1 )

Field Old Value Date By
File Added 326703: fix-not-enough-space-to-store-word.patch 2009-05-12 10:41 tuxsoft