summaryrefslogtreecommitdiffstats
path: root/zcmp.cc
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2015-11-08 04:27:51 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2015-11-08 04:27:51 +0000
commitf1d6b9c378c27bc0c1f596499e1760af4a944087 (patch)
tree10a4be90a2bc52477672f339c649ae74d124accb /zcmp.cc
parentAdding upstream version 1.1~rc2. (diff)
downloadzutils-f1d6b9c378c27bc0c1f596499e1760af4a944087.tar.xz
zutils-f1d6b9c378c27bc0c1f596499e1760af4a944087.zip
Adding upstream version 1.1.upstream/1.1
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'zcmp.cc')
-rw-r--r--zcmp.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/zcmp.cc b/zcmp.cc
index 48731a3..8f362c3 100644
--- a/zcmp.cc
+++ b/zcmp.cc
@@ -223,7 +223,7 @@ int cmp( const long long max_size, const int infd[2],
unsigned long long byte_number = 1;
unsigned long long line_number = 1;
// remaining number of bytes to compare
- long long rest = ( ( max_size >= 0 ) ? max_size : buffer_size );
+ long long rest = ( max_size >= 0 ) ? max_size : buffer_size;
// buffers with space for sentinels at the end
uint8_t * const buffer0 = new uint8_t[2*(buffer_size+1)];
uint8_t * const buffer1 = buffer0 + buffer_size + 1;