From: Adam Dickmeiss Date: Fri, 13 Aug 2004 11:35:37 +0000 (+0000) Subject: Cast to unsigned char to prevent assert in MS Studio .NET. X-Git-Tag: YAZ.2.0.24~44 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=c9408db23d24baece38e05035864f933ea5ea071;p=yaz-moved-to-github.git Cast to unsigned char to prevent assert in MS Studio .NET. --- diff --git a/src/atoin.c b/src/atoin.c index 1bc5947..cb3a899 100644 --- 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++; }