Re: 'char **' <-> 'unsigned char **' and aliasing/punning in C / GNU C

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

 



On 3/8/13, Pedro Alves <palves@xxxxxxxxxx> wrote:
>
>> The answer to that
>> question is yes, because qualifiers are ignored when considering
>> aliasing.  That is, it is safe to cast from T* to unsigned T*.
>
> Ah, okay.  You got me a bit confused because signed/unsigned
> aren't called qualifiers though; those would be const/volatile,
> I think.

Sorry, you're quite right.  Signed and unsigned are ignored, and so
are qualifiers.

Ian


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux