summaryrefslogtreecommitdiffstats
path: root/changes-3.3.8d
diff options
context:
space:
mode:
authorAlexander Golubev <fatzer2@gmail.com>2026-03-10 22:43:34 +0300
committerAlexander Golubev <fatzer2@gmail.com>2026-03-12 23:35:52 +0300
commitdfd0740aa1fc2d02bf22e85a24d6f8a667f7b820 (patch)
tree5e6199b36b6dffad695ac7a0ecd432a033c43087 /changes-3.3.8d
parent6446d21873478f04567a89b3f0fe838cd54222d5 (diff)
downloadtqt-r14.1.x.tar.gz
tqt-r14.1.x.zip
Fix a -Wlogical-not-parentheses warningr14.1.x
The function returns the number of lowest zero bits of a 32-bit value and shifts the value by that number. By the time it reaches last condition x can be zero if and only if the passed value was zero and hence we can immediately return 32. Initially the condition were likely supposed to be `if (!(x & 1))` but in this particular case it's the same as `!x` and subjectively it makes more sense to just check if the number is zero. See discussion in the #264. See-also: https://mirror.git.trinitydesktop.org/gitea/TDE/tqt/pulls/264 Signed-off-by: Alexander Golubev <fatzer2@gmail.com> (cherry picked from commit 709a2722bd05f6e4ed8aa1106874a14892b937d2)
Diffstat (limited to 'changes-3.3.8d')
0 files changed, 0 insertions, 0 deletions