From c9408db23d24baece38e05035864f933ea5ea071 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 13 Aug 2004 11:35:37 +0000 Subject: [PATCH] Cast to unsigned char to prevent assert in MS Studio .NET. --- src/atoin.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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++; } -- 1.7.10.4