git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* size_t vs "unsigned long"
@ 2007-10-03 20:30 Junio C Hamano
  2007-10-03 20:48 ` Pierre Habouzit
  0 siblings, 1 reply; 8+ messages in thread
From: Junio C Hamano @ 2007-10-03 20:30 UTC (permalink / raw)
  To: git; +Cc: Pierre Habouzit

Traditionally, inside git, we have used the length of things
with "unsigned long" for pretty much anything, except where we
wanted the length exactly sized we used int32_t, uint64_t and
friends.

A few places pass pointer to unsigned long as the second
parameter to strbuf_detach(), triggering type mismatch warnings.
An easy way out is to change strbuf_detach() to take a pointer
to ulong but I think it is going backwards.  Most places that
use "unsigned long" can safely be converted (and made more
correct) to use size_t.

Any opinions?

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-10-05  6:35 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-03 20:30 size_t vs "unsigned long" Junio C Hamano
2007-10-03 20:48 ` Pierre Habouzit
2007-10-03 21:05   ` Junio C Hamano
2007-10-03 21:19   ` Jan Wielemaker
2007-10-03 21:36     ` Pierre Habouzit
2007-10-04  7:16       ` Jan Wielemaker
2007-10-03 21:36   ` Florian Weimer
2007-10-05  6:27     ` Kyle Moffett

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).