[haiku-commits] Re: haiku: hrev44929 - in src: kits/media apps/sudoku

  • From: looncraz <looncraz@xxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Fri, 30 Nov 2012 21:15:22 -0800

How would it know which specifiers to change and which to leave alone?


long a = 5;
int32 b = 6;
printf("%ld, %ld", a, b);

Should become on 64 bit:

printf("%ld, %d", a, b);

How would printf32 manage this without knowing the types of the arguments?


hmm... I do - not - know...

seems there must be some point at which the type is identifiable... but I'm not terribly familiar with how it works down deep (always meant to look at it though...).

--The loon

Other related posts: