Alain Magloire <[EMAIL PROTECTED]> wrote:

> It sounds good to me.  So basically if I read you right, you proposing to
> always use 64 bits i.e. mu_off_t ==> 64 bits.

Yes, that's right.
 
> Then the question is: where do we actually need to print/format
> mu_off_t?

I can't say right now, but I remember there were several places where we
did so. Moreover, to my utter perplexion, I have found quite a few
places where off_t was assigned to an int (!). These are already fixed
in the CVS.

> And in the event that we need to print/format is it safe to
> downcast it to an off_t?

I prefer to cast both mu_off_t and size_t (we used to use %ld for that,
too) to uintmax_t and then use gnulib function umaxtostr to produce a
string out of it. This is safe in all possible environments.

Regards,
Sergey
 


_______________________________________________
Bug-mailutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-mailutils

Reply via email to