cast to destination type.
This commit is contained in:
parent
00203d2bfc
commit
9861bac74f
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: h_macros.h,v 1.9 2013/05/17 15:42:09 christos Exp $ */
|
/* $NetBSD: h_macros.h,v 1.10 2015/01/14 22:16:04 christos Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
|
* Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
|
||||||
@ -75,7 +75,7 @@ tests_makegarbage(void *space, size_t len)
|
|||||||
uint16_t randval;
|
uint16_t randval;
|
||||||
|
|
||||||
while (len >= sizeof(randval)) {
|
while (len >= sizeof(randval)) {
|
||||||
*sb++ = (random() & 0xffff);
|
*sb++ = ((uint16_t)random() & 0xffff);
|
||||||
len -= sizeof(*sb);
|
len -= sizeof(*sb);
|
||||||
}
|
}
|
||||||
randval = (uint16_t)random();
|
randval = (uint16_t)random();
|
||||||
|
Loading…
Reference in New Issue
Block a user