Skip to content

Commit bfc1d32

Browse files
authored
fix type error on i686
This fixes the type error on i686 when compiling with gcc 14. Mentioned in bug report martijnvanbrummelen#578
1 parent 2827171 commit bfc1d32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/prng.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ int nwipe_add_lagg_fibonacci_prng_init( NWIPE_PRNG_INIT_SIGNATURE )
269269
*state = malloc( sizeof( add_lagg_fibonacci_state_t ) );
270270
}
271271
add_lagg_fibonacci_init(
272-
(add_lagg_fibonacci_state_t*) *state, (unsigned long*) ( seed->s ), seed->length / sizeof( unsigned long ) );
272+
(add_lagg_fibonacci_state_t*) *state, (long unsigned int*) ( seed->s ), seed->length / sizeof( long unsigned int ) );
273273

274274
return 0;
275275
}
@@ -285,7 +285,7 @@ int nwipe_xoroshiro256_prng_init( NWIPE_PRNG_INIT_SIGNATURE )
285285
*state = malloc( sizeof( xoroshiro256_state_t ) );
286286
}
287287
xoroshiro256_init(
288-
(xoroshiro256_state_t*) *state, (unsigned long*) ( seed->s ), seed->length / sizeof( unsigned long ) );
288+
(xoroshiro256_state_t*) *state, (long unsigned int*) ( seed->s ), seed->length / sizeof( long unsigned int ) );
289289

290290
return 0;
291291
}

0 commit comments

Comments
 (0)