]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
64-bit fixes.
authorJulian Seward <jseward@acm.org>
Thu, 12 May 2005 18:01:15 +0000 (18:01 +0000)
committerJulian Seward <jseward@acm.org>
Thu, 12 May 2005 18:01:15 +0000 (18:01 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3683

memcheck/tests/error_counts.c

index 819798754a1cb9855f664180c1d889c3779faff4..7ec6dbfff9c079106c3484ebf778cddc74ed498e 100644 (file)
@@ -1,5 +1,6 @@
 #include <stdio.h>
 #include <stdlib.h>
+#include <assert.h>
 #include "../memcheck.h"
 
 int main(void)
@@ -14,6 +15,9 @@ int main(void)
    int  n_leaked     = 0;
    int  n_suppressed = 0;
 
+   /* we require these longs to have same size as a machine word */
+   assert(sizeof(long) == sizeof(void*));
+
    /* Error counting */
    printf("errors: %d\n", VALGRIND_COUNT_ERRORS);