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:
2b2afee
)
Cast to unsigned char to prevent assert in MS Studio .NET.
author
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 13 Aug 2004 11:35:37 +0000
(11:35 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 13 Aug 2004 11:35:37 +0000
(11:35 +0000)
src/atoin.c
patch
|
blob
|
history
diff --git
a/src/atoin.c
b/src/atoin.c
index
1bc5947
..
cb3a899
100644
(file)
--- a/
src/atoin.c
+++ b/
src/atoin.c
@@
-1,8
+1,8
@@
/*
- * Copyright (c) 1997-2003, Index Data
+ * Copyright (c) 1997-2004, Index Data
* See the file LICENSE for details.
*
- * $Id: atoin.c,v 1.1 2003-10-27 12:21:30 adam Exp $
+ * $Id: atoin.c,v 1.2 2004-08-13 11:35:37 adam Exp $
*/
#if HAVE_CONFIG_H
@@
-19,7
+19,7
@@
int atoi_n (const char *buf, int len)
while (--len >= 0)
{
- if (isdigit (*buf))
+ if (isdigit (*(const unsigned char *) buf))
val = val*10 + (*buf - '0');
buf++;
}