lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master a1c1aa0 11/16: Avoid type 'long int'


From: Greg Chicares
Subject: [lmi-commits] [lmi] master a1c1aa0 11/16: Avoid type 'long int'
Date: Thu, 15 Nov 2018 17:37:04 -0500 (EST)

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

    Avoid type 'long int'
---
 crc32.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/crc32.cpp b/crc32.cpp
index ef01fc7..4b128d7 100644
--- a/crc32.cpp
+++ b/crc32.cpp
@@ -90,7 +90,7 @@ namespace
         e = 0;
         for(i = 0; i < lmi::ssize(p); ++i)
             {
-            e |= 1L << (31 - p[i]);
+            e |= std::uint32_t(1) << (31 - p[i]);
             }
 
         for(i = 1; i < 256; ++i)



reply via email to

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