Module Name: src
Committed By: drochner
Date: Tue Jul 21 21:45:33 UTC 2009
Modified Files:
src/tests/lib/libc/string: t_popcount.c
Log Message:
flag a 64-bit integer constant as "ULL" -- this is not clean but the
code around it assumes it anyway
fixes build on 32-bit
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libc/string/t_popcount.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/tests/lib/libc/string/t_popcount.c
diff -u src/tests/lib/libc/string/t_popcount.c:1.1 src/tests/lib/libc/string/t_popcount.c:1.2
--- src/tests/lib/libc/string/t_popcount.c:1.1 Tue Jul 21 13:18:44 2009
+++ src/tests/lib/libc/string/t_popcount.c Tue Jul 21 21:45:33 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: t_popcount.c,v 1.1 2009/07/21 13:18:44 joerg Exp $ */
+/* $NetBSD: t_popcount.c,v 1.2 2009/07/21 21:45:33 drochner Exp $ */
/*-
* Copyright (c) 2009 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_popcount.c,v 1.1 2009/07/21 13:18:44 joerg Exp $");
+__RCSID("$NetBSD: t_popcount.c,v 1.2 2009/07/21 21:45:33 drochner Exp $");
#include <atf-c.h>
#include <strings.h>
@@ -176,7 +176,7 @@
}
}
- ATF_CHECK_EQ(popcountll(0xffffffffffffffff), 64);
+ ATF_CHECK_EQ(popcountll(0xffffffffffffffffULL), 64);
}
ATF_TP_ADD_TCS(tp)