Skip to content

Commit

Permalink
Fix "Integer constant is too large for 'long' type"
Browse files Browse the repository at this point in the history
kalyna.cpp:432: error: integer constant is too large for 'long' type
kalyna.cpp:509: error: integer constant is too large for 'long' type
kalyna.cpp:608: error: integer constant is too large for 'long' type
kalyna.cpp:713: error: integer constant is too large for 'long' type
kalyna.cpp:833: error: integer constant is too large for 'long' type
...
  • Loading branch information
noloader committed Aug 7, 2017
1 parent 086ad70 commit 58b731c
Show file tree
Hide file tree
Showing 2 changed files with 1,029 additions and 1,029 deletions.
10 changes: 5 additions & 5 deletions kalyna.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ void Kalyna::Base::SetKey_22(const word64 key[2])
GL128(t1, t2, key);
G0128(t2, ks);

word64 constant = 0x0001000100010001;
word64 constant = W64LIT(0x0001000100010001);

// round 0
memcpy(k, key, 16);
Expand Down Expand Up @@ -506,7 +506,7 @@ void Kalyna::Base::SetKey_24(const word64 key[4])
GL128(t1, t2, ka);
G0128(t2, ks);

word64 constant = 0x0001000100010001;
word64 constant = W64LIT(0x0001000100010001);

// round 0
memcpy(k, key, 256 / 8);
Expand Down Expand Up @@ -605,7 +605,7 @@ void Kalyna::Base::SetKey_44(const word64 key[4])
GL256(t1, t2, key);
G0256(t2, ks);

word64 constant = 0x0001000100010001;
word64 constant = W64LIT(0x0001000100010001);

// round 0
memcpy(k, key, 32);
Expand Down Expand Up @@ -710,7 +710,7 @@ void Kalyna::Base::SetKey_48(const word64 key[8])
GL256(t1, t2, ka);
G0256(t2, ks);

word64 constant = 0x0001000100010001;
word64 constant = W64LIT(0x0001000100010001);

// round 0
memcpy(k, key, 512 / 8);
Expand Down Expand Up @@ -830,7 +830,7 @@ void Kalyna::Base::SetKey_88(const word64 key[8])
GL512(t1, t2, key);
G0512(t2, ks);

word64 constant = 0x0001000100010001;
word64 constant = W64LIT(0x0001000100010001);

// round 0
memcpy(k, key, 512 / 8);
Expand Down
Loading

0 comments on commit 58b731c

Please sign in to comment.