Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Jul 1998 14:45:14 -0700 (PDT)
From:      Bruce Evans <bde@FreeBSD.ORG>
To:        cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-usrbin@FreeBSD.ORG
Subject:   cvs commit: src/usr.bin/nm nm.c
Message-ID:  <199807062145.OAA28771@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
bde         1998/07/06 14:45:13 PDT

  Modified files:
    usr.bin/nm           nm.c 
  Log:
  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).
  
  Revision  Changes    Path
  1.12      +6 -6      src/usr.bin/nm/nm.c

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199807062145.OAA28771>