mirror of
git://git.sv.gnu.org/findutils.git
synced 2026-01-28 20:43:21 +01:00
Applied Savannah patch #2692 (allowing get_short to process negative integers).
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user