[project @ 2007-12-21 21:22:43 by jwe]
author |
jwe |
date |
Fri, 21 Dec 2007 21:22:43 +0000 |
parents |
74b372fffa72 |
children |
274d9642ac10 |
files |
scripts/ChangeLog scripts/general/bitcmp.m |
diffstat |
2 files changed, 1 insertions(+), 5 deletions(-)
[+]
|
line diff
--- a/scripts/ChangeLog
+++ b/scripts/ChangeLog
@@ -1,7 +1,3 @@
-2007-12-21 John W. Eaton <jwe@octave.org>
-
- * general/bitcmp.m: Use round instead of ceil.
-
2007-12-21 Soren Hauberg <hauberg@gmail.com>
* image/imshow.m: Accept empty value for display_range.
--- a/scripts/general/bitcmp.m
+++ b/scripts/general/bitcmp.m
@@ -46,7 +46,7 @@
if (isa (a, "double"))
bmax = bitmax;
- amax = round (log2 (bmax));
+ amax = ceil (log2 (bmax));
else
if (isa (a, "uint8"))
amax = 8;