lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 2b4947a 08/22: Write inequality comparisons i


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 2b4947a 08/22: Write inequality comparisons in number-line order
Date: Sat, 28 Mar 2020 18:23:36 -0400 (EDT)

branch: master
commit 2b4947a75aa5eb481eb056774ea141e9cc76a90c
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Write inequality comparisons in number-line order
---
 md5sum.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/md5sum.cpp b/md5sum.cpp
index 4060443..3927beb 100644
--- a/md5sum.cpp
+++ b/md5sum.cpp
@@ -167,7 +167,7 @@ std::string md5_calculate_stream_checksum
         }
 
     // Add the last bytes if necessary.
-    if(read_count > 0)
+    if(0 < read_count)
         {
         // Note that we have to use md5_process_bytes() and not the faster
         // md5_process_block() here because the read_count is not necessarily



reply via email to

[Prev in Thread] Current Thread [Next in Thread]