From f974a32a19e670d80dbca93f81abb944087abf4f Mon Sep 17 00:00:00 2001 From: Max Date: Sat, 12 Jan 2019 14:27:58 -0500 Subject: [PATCH] eliminate warning: large integer implicitly truncated to unsigned type --- op25/gr-op25/lib/desport.c | 3 ++- op25/gr-op25/lib/dessp.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/op25/gr-op25/lib/desport.c b/op25/gr-op25/lib/desport.c index 01bc294..0073be3 100644 --- a/op25/gr-op25/lib/desport.c +++ b/op25/gr-op25/lib/desport.c @@ -1,5 +1,6 @@ /* Portable C version of des() function */ +#include #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. diff --git a/op25/gr-op25/lib/dessp.c b/op25/gr-op25/lib/dessp.c index 61356f1..2470400 100644 --- a/op25/gr-op25/lib/dessp.c +++ b/op25/gr-op25/lib/dessp.c @@ -1,4 +1,5 @@ -unsigned long Spbox[8][64] = { +#include +uint64_t Spbox[8][64] = { 0x01010400,0x00000000,0x00010000,0x01010404, 0x01010004,0x00010404,0x00000004,0x00010000, 0x00000400,0x01010400,0x01010404,0x00000400,