diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-07 15:36:52 +0000 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-07 15:36:52 +0000 |
commit | e07b6bef9e2cc970899d6e83c3a78245a915ae81 (patch) | |
tree | fe4eaa453e6050621db4d40f8def3417f613b63e /compress.cc | |
parent | Adding upstream version 1.1. (diff) | |
download | plzip-e07b6bef9e2cc970899d6e83c3a78245a915ae81.tar.xz plzip-e07b6bef9e2cc970899d6e83c3a78245a915ae81.zip |
Adding upstream version 1.2~pre1.upstream/1.2_pre1
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'compress.cc')
-rw-r--r-- | compress.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compress.cc b/compress.cc index 050fdc1..942f1d3 100644 --- a/compress.cc +++ b/compress.cc @@ -1,6 +1,6 @@ /* Plzip - Parallel compressor compatible with lzip Copyright (C) 2009 Laszlo Ersek. - Copyright (C) 2009, 2010, 2011, 2012, 2013 Antonio Diaz Diaz. + Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014 Antonio Diaz Diaz. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -248,7 +248,7 @@ public: // collect a packet from a worker void collect_packet( const Packet * const opacket ) { - const int i = opacket->id%num_slots; + const int i = opacket->id % num_slots; xlock( &omutex ); // id collision shouldn't happen if( circular_buffer[i] != 0 ) |