[project @ 2007-12-21 19:00:12 by jwe]
author |
jwe |
date |
Fri, 21 Dec 2007 19:00:12 +0000 |
parents |
3ed85de5922c |
children |
66dfb0abd3d3 |
files |
scripts/ChangeLog scripts/general/bitcmp.m |
diffstat |
2 files changed, 5 insertions(+), 1 deletions(-)
[+]
|
line diff
--- a/scripts/ChangeLog
+++ b/scripts/ChangeLog
@@ -1,3 +1,7 @@
+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 = ceil (log2 (bmax));
+ amax = round (log2 (bmax));
else
if (isa (a, "uint8"))
amax = 8;