diff options
author | tron <tron@openttd.org> | 2006-02-18 14:41:24 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-02-18 14:41:24 +0000 |
commit | 49c7eb934be0dc92d640ea3a32c02dddcc83369a (patch) | |
tree | 2b47e6b2c9b73650b42ce6caa2b78f05d91cc03b /misc.c | |
parent | 6cfefdb2750d9beccb350ea47db9e2edaa61655c (diff) | |
download | openttd-49c7eb934be0dc92d640ea3a32c02dddcc83369a.tar.xz |
(svn r3613) Some more const, indentation, whitespace and similar stuff
Diffstat (limited to 'misc.c')
-rw-r--r-- | misc.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -600,9 +600,9 @@ int FindFirstBit(uint32 value) // not more than 128. byte i = 0; if (value & 0xffff0000) { value >>= 16; i += 16; } - if (value & 0x0000ff00) { value >>= 8; i += 8; } - if (value & 0x000000f0) { value >>= 4; i += 4; } - if (value & 0x0000000c) { value >>= 2; i += 2; } + if (value & 0x0000ff00) { value >>= 8; i += 8; } + if (value & 0x000000f0) { value >>= 4; i += 4; } + if (value & 0x0000000c) { value >>= 2; i += 2; } if (value & 0x00000002) { i += 1; } return i; } |