projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aff89a8
)
Use _strtoui64 on Windows
author
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 3 Dec 2009 14:55:01 +0000
(15:55 +0100)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 3 Dec 2009 14:55:01 +0000
(15:55 +0100)
ztest/ztest.c
patch
|
blob
|
history
diff --git
a/ztest/ztest.c
b/ztest/ztest.c
index
3bb4886
..
8011e0f
100644
(file)
--- a/
ztest/ztest.c
+++ b/
ztest/ztest.c
@@
-55,7
+55,11
@@
static Odr_int get_term_hit(Z_RPNStructure *s)
char *endptr;
WRBUF hits_str = wrbuf_alloc();
wrbuf_write(hits_str, (const char *) oct->buf, oct->len);
+#ifdef WIN32
+ h = _strtoui64(wrbuf_cstr(hits_str), &endptr, 10);
+#else
h = strtoll(wrbuf_cstr(hits_str), &endptr, 10);
+#endif
wrbuf_destroy(hits_str);
}
}