CHG: reduced some compiler warnings on Ubuntu 14.04

This commit is contained in:
iceman1001
2016-04-19 22:51:59 +02:00
parent 165bf558e7
commit 69687aafb7
4 changed files with 29 additions and 9 deletions

View File

@ -23,6 +23,11 @@ THE SOFTWARE.
*/
#include "crypto1_bs.h"
#include <inttypes.h>
#define __STDC_FORMAT_MACROS
#define llx PRIx64
#define lli PRIi64
#define lu PRIu32
// The following functions use this global or thread-local state
// It is sized to fit exactly KEYSTREAM_SIZE more states next to the initial state
@ -109,7 +114,7 @@ void crypto1_bs_print_states(bitslice_t bitsliced_states[]){
state_t values[MAX_BITSLICES];
crypto1_bs_convert_states(bitsliced_states, values);
for(slice_idx = 0; slice_idx < MAX_BITSLICES; slice_idx++){
printf("State %03lu: %012lx\n", slice_idx, values[slice_idx].value);
printf("State %03zu: %012"llx"\n", slice_idx, values[slice_idx].value);
}
}