]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fixed classic sign extension bug `-(long)sizeof(foo)'.
authorbde <bde@FreeBSD.org>
Mon, 6 Jul 1998 21:45:12 +0000 (21:45 +0000)
committerbde <bde@FreeBSD.org>
Mon, 6 Jul 1998 21:45:12 +0000 (21:45 +0000)
commit067f8c8dc926fe603627b3942b43d82910de2a5f
treed38da32b0ee98fb6d463b9c2f3464dbd31b289d0
parent0609531ab6b945c4918206f095bc1f6640408654
Fixed classic sign extension bug `-(long)sizeof(foo)'.

Fixed the type of the string table size variable to match its use
(assuming that int32_t is 4 bytes and other unportable things).
bfd uses `unsigned char string_chars[BYTES_IN_WORD]', where
BYTES_IN_WORD can be 4, 8, or perhaps even 2 or 3, but it is
assumed to be precisely 4 bytes here.

Fixed printf format errors (don't assume that n_value in struct
n_list has type u_long, since it should have size BYTES_IN_WORD
and longs may be longer than words).
usr.bin/nm/nm.c