Overview
Comment: | Fix a bug in all OFNumber operations using CALCULATE2. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
d68c28b9de815d94889131faaa0917d6 |
User & Date: | js on 2010-02-13 14:07:17 |
Other Links: | manifest | tags |
Context
2010-02-13
| ||
14:09 | Add tests for OFNumber. check-in: 2d0f01d788 user: js tags: trunk | |
14:07 | Fix a bug in all OFNumber operations using CALCULATE2. check-in: d68c28b9de user: js tags: trunk | |
2010-02-12
| ||
22:09 | Fix version in configure.ac. check-in: 760c45b8e5 user: js tags: trunk | |
Changes
Modified src/OFNumber.m from [7dc3a8f62d] to [de1f0fba0f].
︙ | ︙ | |||
141 142 143 144 145 146 147 | case OF_NUMBER_DOUBLE: \ value.double_ o; \ break; \ default: \ @throw [OFInvalidFormatException newWithClass: isa]; \ } #define CALCULATE2(o, n) \ | | | 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 | case OF_NUMBER_DOUBLE: \ value.double_ o; \ break; \ default: \ @throw [OFInvalidFormatException newWithClass: isa]; \ } #define CALCULATE2(o, n) \ switch (type) { \ case OF_NUMBER_CHAR: \ value.char_ o [n asChar]; \ break; \ case OF_NUMBER_SHORT: \ value.short_ o [n asShort]; \ break; \ case OF_NUMBER_INT: \ |
︙ | ︙ |