Tue Jul 21 21:45:33 2009 UTC ()
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


(drochner)
diff -r1.1 -r1.2 src/tests/lib/libc/string/t_popcount.c

cvs diff -r1.1 -r1.2 src/tests/lib/libc/string/t_popcount.c (expand / switch to context diff)
--- src/tests/lib/libc/string/t_popcount.c 2009/07/21 13:18:44 1.1
+++ src/tests/lib/libc/string/t_popcount.c 2009/07/21 21:45:33 1.2
@@ -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)