projects
/
idzebra-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use atoll/atoi for ascii to zint conversion in alvis filter.
[idzebra-moved-to-github.git]
/
index
/
alvis.c
diff --git
a/index/alvis.c
b/index/alvis.c
index
2f91763
..
851064f
100644
(file)
--- a/
index/alvis.c
+++ b/
index/alvis.c
@@
-1,4
+1,4
@@
-/* $Id: alvis.c,v 1.8 2006-12-13 13:05:45 adam Exp $
+/* $Id: alvis.c,v 1.9 2006-12-22 12:13:40 adam Exp $
Copyright (C) 1995-2006
Index Data ApS
Copyright (C) 1995-2006
Index Data ApS
@@
-434,7
+434,12
@@
static void index_record(struct filter_info *tinfo,struct recExtractCtrl *ctrl,
sscanf(id_str, "%255s", ctrl->match_criteria);
if (rank_str)
sscanf(id_str, "%255s", ctrl->match_criteria);
if (rank_str)
- ctrl->staticrank = atoi(rank_str);
+ ctrl->staticrank =
+#if HAVE_ATOLL
+ atoll(rank_str);
+#else
+ atoi(rank_str);
+#endif
ptr = ptr->children;
}
ptr = ptr->children;
}