diff options
author | Lauri Kenttä <lauri.kentta@gmail.com> | 2015-05-10 13:40:29 +0300 |
---|---|---|
committer | Nikita Popov <nikic@php.net> | 2015-05-10 13:00:45 +0200 |
commit | cf7e5357a46afe1dca978f4887bbd83a7507ce69 (patch) | |
tree | 2692e6ba98c0748ee183e741d8286d671c646537 /ext/json/json_parser.tab.c | |
parent | 8c8889e7d470e0e20d2cab641c9833b4b3b8c6ac (diff) | |
download | php-git-cf7e5357a46afe1dca978f4887bbd83a7507ce69.tar.gz |
random_int: Fix power of two check.
(x & ~x) is always 0.
((x & (~x + 1)) != x) works.
((x & (x - 1)) != 0) works too.
Diffstat (limited to 'ext/json/json_parser.tab.c')
0 files changed, 0 insertions, 0 deletions