eliminate warning: large integer implicitly truncated to unsigned type

max
Max 4 years ago
parent 6064229027
commit f974a32a19
  1. 3
      op25/gr-op25/lib/desport.c
  2. 3
      op25/gr-op25/lib/dessp.c

@ -1,5 +1,6 @@
/* Portable C version of des() function */
#include <stdint.h>
#include "des.h"
/* Tables defined in the Data Encryption Standard documents
@ -115,7 +116,7 @@ int Asmversion = 0;
* For best results, ensure that this is aligned on a 32-bit boundary;
* Borland C++ 3.1 doesn't guarantee this!
*/
extern unsigned long Spbox[8][64]; /* Combined S and P boxes */
extern uint64_t Spbox[8][64]; /* Combined S and P boxes */
/* Primitive function F.
* Input is r, subkey array in keys, output is XORed into l.

@ -1,4 +1,5 @@
unsigned long Spbox[8][64] = {
#include <stdint.h>
uint64_t Spbox[8][64] = {
0x01010400,0x00000000,0x00010000,0x01010404,
0x01010004,0x00010404,0x00000004,0x00010000,
0x00000400,0x01010400,0x01010404,0x00000400,

Loading…
Cancel
Save