From: Adam Dickmeiss Date: Thu, 3 Dec 2009 22:18:09 +0000 (+0100) Subject: Use odr_atoi to decode fake hit count (in term) X-Git-Tag: v4.0.0~88 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=96891b4d5a0681c2c9bc03f211639f0d98970796;p=yaz-moved-to-github.git Use odr_atoi to decode fake hit count (in term) --- diff --git a/ztest/ztest.c b/ztest/ztest.c index 8011e0f..dc31a33 100644 --- a/ztest/ztest.c +++ b/ztest/ztest.c @@ -55,11 +55,7 @@ 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 + h = odr_atoi(wrbuf_cstr(hits_str)); wrbuf_destroy(hits_str); } }