[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reconciliation of libsnprintfv vs. autogen

From: Paul Eggert
Subject: Re: Reconciliation of libsnprintfv vs. autogen
Date: Sun, 25 Feb 2007 23:42:28 -0800
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux)

address@hidden (Larry Jones) writes:

> Yes, it is.  Unfortunately, it's also wrong.  If you have a pointer to
> char but need to treat the data it points to as unsigned char, you have
> to cast the pointer and dereference it to get the correct value on ones
> complement systems -- dereferencing and then casting doesn't work
> because -0 gets converted to +0.

OK, but gnulib assumes two's complement hosts.  This is documented in
its README.  So we needn't worry about casting the pointer before
dereferencing it here.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]