On Thursday 2004-03-25 15:39, Guido van Rossum wrote: ["Hyperdivision":] > > i'm using gcc-cvs and i get "invalid lvalue..." > > in Objects/bufferobject.c, line 46 > > i fix this by deleting the cast to char on the left side of = > > (my c's not so sharp, so i'm not sure this is the way to fix it) > > but i just wanted to point out the problem hoping someone > > might know what to do with it... [Guido:] > Hm, the GCC I have likes this just fine. It seems you are using a > bleeding edge GCC version. Maybe you can take this up with the GCC > developers? It could be a bug there... According to the draft C9x standard (the only C standard I have to hand), "a cast does not yield an lvalue". I think that line should say *ptr = (void*)((char *)*ptr + offset); which I assume is the intended meaning. -- g
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4