From: Peter Verthez Date: Sun, 27 Oct 2002 15:49:07 +0000 (+0000) Subject: Use portability.c to convert void* to integer. X-Git-Url: https://git.dlugolecki.net.pl/?a=commitdiff_plain;h=8b767bf5e44f07a29ed3ef77af27bf29f2db729a;p=gedcom-parse.git Use portability.c to convert void* to integer. --- 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; }