diff options
author | Michel Dänzer <michel@tungstengraphics.com> | 2006-06-24 15:21:17 +0200 |
---|---|---|
committer | Michel Dänzer <michel@tungstengraphics.com> | 2006-06-24 15:21:17 +0200 |
commit | 930b9a069a425818d4e9965f53be7df1f4d7d422 (patch) | |
tree | 961677f7acdbeb38aab4382f980780e5c2bec094 /exa | |
parent | 36756fdb2ddc154b406f664a6af0f38d26e6973d (diff) |
Bug #6818: Avoid infinite loop in exaLog2() with negative arguments.
Diffstat (limited to 'exa')
-rw-r--r-- | exa/exa.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -158,7 +158,7 @@ exaLog2(int val) { int bits; - if (!val) + if (val <= 0) return 0; for (bits = 0; val != 0; bits++) val >>= 1; |