X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Feu%2Fsvjatoslav%2Fcommons%2Fdata%2FBitOutputStream.java;h=293788fbbfb7643d72badff0932ca09468e1266a;hb=cf965fda534cc562368c9f2a3f34475e2519fcdc;hp=6348d0a580169baa9c0f6839562074477e29bc16;hpb=6a9352a6edbeaa1a2b3dafc09e91f53ab1871e1c;p=svjatoslav_commons.git diff --git a/src/main/java/eu/svjatoslav/commons/data/BitOutputStream.java b/src/main/java/eu/svjatoslav/commons/data/BitOutputStream.java index 6348d0a..293788f 100755 --- a/src/main/java/eu/svjatoslav/commons/data/BitOutputStream.java +++ b/src/main/java/eu/svjatoslav/commons/data/BitOutputStream.java @@ -1,6 +1,6 @@ /* * Svjatoslav Commons - shared library of common functionality. - * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu + * Copyright ©2012-2013, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public License @@ -46,9 +46,8 @@ public class BitOutputStream { final int currentBit = data & mask; currentByte = currentByte << 1; - if (currentBit != 0) { + if (currentBit != 0) currentByte = currentByte | 1; - } currentBytePointer++; if (currentBytePointer == 8) {