Commit 4f46c20
committed
Add parentheses around macro arguments
This fixes actual problem reported by clang: in client.cpp,
maplist(..., i!=0); expands to mapshrink(!i!=0, ...) which
is interpreted as (!i)!=0 instead of !(i!=0). Nice example why
macros are evil. By happy coincidence, this still works correctly,
but fix this nevertheless and add some more parens in other expressions
just for the case.1 parent 0e67905 commit 4f46c20
1 file changed
+6
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
288 | | - | |
| 288 | + | |
289 | 289 | | |
290 | | - | |
291 | | - | |
292 | | - | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
293 | 293 | | |
294 | | - | |
| 294 | + | |
295 | 295 | | |
296 | 296 | | |
297 | 297 | | |
| |||
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
305 | | - | |
| 305 | + | |
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
| |||
0 commit comments