projects
/
zxing.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
More small changes from code inspection
[zxing.git]
/
core
/
src
/
com
/
google
/
zxing
/
common
/
ByteArray.java
diff --git
a/core/src/com/google/zxing/common/ByteArray.java
b/core/src/com/google/zxing/common/ByteArray.java
index
7382b78
..
8fccba4
100644
(file)
--- a/
core/src/com/google/zxing/common/ByteArray.java
+++ b/
core/src/com/google/zxing/common/ByteArray.java
@@
-66,7
+66,7
@@
public final class ByteArray {
public void appendByte(int value) {
if (size == 0 || size >= bytes.length) {
- int newSize = Math.max(INITIAL_SIZE, size
* 2
);
+ int newSize = Math.max(INITIAL_SIZE, size
<< 1
);
reserve(newSize);
}
bytes[size] = (byte) value;