From 2cb0f10a473fb1fb299a95c1b0accdfadd397351 Mon Sep 17 00:00:00 2001 From: George Rhoten Date: Fri, 13 Aug 2004 17:03:17 +0000 Subject: [PATCH] ICU-2641 Return the right number when scanf returns an error. X-SVN-Rev: 16152 --- icu4c/source/io/uscanf_p.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/icu4c/source/io/uscanf_p.c b/icu4c/source/io/uscanf_p.c index 06a2233e81a..ff979eee607 100644 --- a/icu4c/source/io/uscanf_p.c +++ b/icu4c/source/io/uscanf_p.c @@ -1296,7 +1296,7 @@ u_scanf_parse(UFILE *f, /* if the handler encountered an error condition, break */ if(argConsumed < 0) { - converted = -converted; + converted = -1; break; }