From 8b767bf5e44f07a29ed3ef77af27bf29f2db729a Mon Sep 17 00:00:00 2001 From: Peter Verthez Date: Sun, 27 Oct 2002 15:49:07 +0000 Subject: [PATCH] Use portability.c to convert void* to integer. --- t/src/update.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/t/src/update.c b/t/src/update.c index d9f02a2..1282b49 100644 --- a/t/src/update.c +++ b/t/src/update.c @@ -23,6 +23,7 @@ #include "gedcom.h" #include "output.h" +#include "portability.h" #include #include @@ -51,6 +52,7 @@ int test_xref_functions() { struct xref_value* xr; int result; + long int tmp; xr = gedcom_get_by_xref("@NOTHING_THERE@"); if (xr != NULL) @@ -81,7 +83,8 @@ int test_xref_functions() return 16; } - if ((int)xr->object != 1) { + tmp = void_ptr_to_int(xr->object); + if (tmp != 1) { output(1, "Not the correct cross-reference object\n"); return 17; } -- 2.30.2