Module Name: src
Committed By: christos
Date: Wed Jan 14 22:16:05 UTC 2015
Modified Files:
src/tests: h_macros.h
Log Message:
cast to destination type.
To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/tests/h_macros.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/tests/h_macros.h
diff -u src/tests/h_macros.h:1.9 src/tests/h_macros.h:1.10
--- src/tests/h_macros.h:1.9 Fri May 17 11:42:09 2013
+++ src/tests/h_macros.h Wed Jan 14 17:16:04 2015
@@ -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.
@@ -75,7 +75,7 @@ tests_makegarbage(void *space, size_t le
uint16_t randval;
while (len >= sizeof(randval)) {
- *sb++ = (random() & 0xffff);
+ *sb++ = ((uint16_t)random() & 0xffff);
len -= sizeof(*sb);
}
randval = (uint16_t)random();