Applied Savannah patch #2692 (allowing get_short to process negative integers).

This commit is contained in:
James Youngman
2004-10-30 16:37:52 +00:00
parent 6baf8d24d8
commit fee5fbb47f

View File

@@ -143,7 +143,7 @@ get_short (fp)
register short x;
x = fgetc (fp) << 8;
x = (signed char) fgetc (fp) << 8;
x |= (fgetc (fp) & 0xff);
return x;
}