Message224710
BTW. There is also an argument to be made against my patch and for a documentation update: it is unclear to me if clang ever creates _Bool false values where the bit pattern isn't exactly the same as the zero value of an integer of the same size (for example due to generated code only updating the least significant bit and starting with a uninitialised value that has some of the other bits set). If it does so depends on what's more efficient to do in machine code, and my knowledge of assembly is too rusty to have anything useful to say about that (although I'd suspect that overwriting the complete _Bool value would be more efficient than loading the current value, updating the LSB and storing it again).
If it can do so the current behavior of struct.unpack would be more correct than the version you get after applying my patch. |
|
Date |
User |
Action |
Args |
2014-08-04 11:55:02 | ronaldoussoren | set | recipients:
+ ronaldoussoren, mark.dickinson, ned.deily, wayedt |
2014-08-04 11:55:02 | ronaldoussoren | set | messageid: <1407153302.89.0.387334151527.issue22012@psf.upfronthosting.co.za> |
2014-08-04 11:55:02 | ronaldoussoren | link | issue22012 messages |
2014-08-04 11:55:02 | ronaldoussoren | create | |
|