On ons, 2011-01-12 at 00:08 +0100, Magnus Fromreide wrote:
> On Thu, Jan 06, 2011 at 04:11:08PM +0100, Ian Kumlien wrote:
> 
> > commit b780d7fcf957d18399bae22f7681f9fe3d9efd3b
> > Author: Ian Kumlien <[email protected]>
> > Date:   Thu Jan 6 04:27:53 2011 +0100
> > 
> >     64 bit cleanups, using inttypes.h
> >     
> >     * Use UINT64_MAX definition instead of ~0ULL
> >     * Use PRIy64 for formating
> >     
> >     All this to better comply to C++ standards and avoid castings
> >     (I don't know if this is something you actually want, just
> >     playing with the code)
> > 
> >     }
> ...
> > diff --git a/lib.cpp b/lib.cpp
> > index 9b6e04c..a26f6f3 100644
> > --- a/lib.cpp
> > +++ b/lib.cpp
> > @@ -69,20 +70,20 @@ double percentage(double F)
> >  
> >  char *hz_to_human(unsigned long hz, char *buffer, int digits)
> >  {
> > -   unsigned long long Hz;
> > +   uint64_t Hz;
> >  
> >     buffer[0] = 0;
> >  
> >     Hz = hz;
> >  
> >     /* default: just put the Number in */
> > -   sprintf(buffer,_("%9lli"), Hz);
> > +   sprintf(buffer, _("%9" PRIi64), Hz);
> 
> Won't this mess up the translations? With this change i'd think that the .po
> file becomes target specific.

I think so too, byt then, how many translations of Hz is there? =)

> /MF

-- 
Ian Kumlien  -- http://demius.net || http://pomac.netswarm.net

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Power mailing list
[email protected]
http://www.bughost.org/mailman/listinfo/power

Reply via email to