On Saturday 08 September 2007, [EMAIL PROTECTED] wrote: > i have the following piece of code which gives compilation error (like > lvalue requried...) may be bug with the compiler > > uchar *s; > > *((ushort *)s)++ = val; > > if i change that to > *(ushort *)s = val; > s+=2; > > it works fine. > > I am using uclibc 0.9.29, gcc 4.1.2, binutils 2.17.
the system libc is irrelevant so in the future, please post your code questions to one of the gcc mailing lists (like gcc-help) ... but as already noted, the code here is just plain wrong -mike
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ uClibc mailing list [email protected] http://busybox.net/cgi-bin/mailman/listinfo/uclibc
