dlugolecki.net.pl
Dziennik
Polecane
Software
projects
/
gedcom-parse.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80b0eca
)
Use portability.c to convert void* to integer.
author
Peter Verthez
<Peter.Verthez@advalvas.be>
Sun, 27 Oct 2002 15:49:07 +0000
(15:49 +0000)
committer
Peter Verthez
<Peter.Verthez@advalvas.be>
Sun, 27 Oct 2002 15:49:07 +0000
(15:49 +0000)
t/src/update.c
patch
|
blob
|
history
diff --git
a/t/src/update.c
b/t/src/update.c
index d9f02a24651577a2145b3b543bf70dbd23ca88eb..1282b49d4e9760aeb61ecf00a320486b708fdca2 100644
(file)
--- a/
t/src/update.c
+++ b/
t/src/update.c
@@
-23,6
+23,7
@@
#include "gedcom.h"
#include "output.h"
+#include "portability.h"
#include <locale.h>
#include <stdio.h>
@@
-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;
}