summaryrefslogtreecommitdiffstats
path: root/compress.cc
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 15:36:59 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 15:36:59 +0000
commit3d3968e451576fa317143140cb93242dba81f418 (patch)
treeedb3c6b69183c590ba38029242bd01614e426818 /compress.cc
parentAdding debian version 1.1-1. (diff)
downloadplzip-3d3968e451576fa317143140cb93242dba81f418.tar.xz
plzip-3d3968e451576fa317143140cb93242dba81f418.zip
Merging upstream version 1.2~pre1.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'compress.cc')
-rw-r--r--compress.cc4
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 )