Files @ r26727:e2c8c42642ff
Branch filter:

Location: cpp/openttd-patchpack/source/.editorconfig

Rubidium
Fix: bad oddness checks

Modulo on a signed number returns negative values for negative values, so
i % 2 == 1 will only return true for positive odd numbers, whereas i % 2 != 0
returns true for both positive and negative odd numbers.
1
2
3
4
5
6
7
8
9
root = true

[*]
insert_final_newline = true
trim_trailing_whitespace = true

[*.{c,cpp,h,hpp}]
indent_style = tab
charset = utf-8