Ugochukwu Mmaduekwe 7 years ago
parent
commit
cff3c77d5d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      CryptoLib/src/Math/Raw/ClpNat.pas

+ 2 - 2
CryptoLib/src/Math/Raw/ClpNat.pas

@@ -1295,8 +1295,8 @@ begin
       // (c shl (-bits)).ToString + ' DADA ' + ((next shr bits) or (c shl (-bits)
       // )).ToString);
       raise Exception.Create((next shr bits).ToString + ' DADA ' +
-        (c shl UInt32(-bits)).ToString + ' DADA ' + ((next shr bits) or
-        (c shl UInt32(-bits))).ToString);
+        (c shl (32 - bits)).ToString + ' DADA ' + ((next shr bits) or
+        (c shl (32 - bits))).ToString);
     end
     else
     begin