From 687f4d21b89ddd3108f9b6c15437ebc3e1cc47e3 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Thu, 19 May 2011 21:46:53 +0000 Subject: [PATCH] fixed condition for a maximum positinal index --- qse/lib/awk/run.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qse/lib/awk/run.c b/qse/lib/awk/run.c index 28dfd38a..1723df72 100644 --- a/qse/lib/awk/run.c +++ b/qse/lib/awk/run.c @@ -1,5 +1,5 @@ /* - * $Id: run.c 463 2011-05-19 02:50:51Z hyunghwan.chung $ + * $Id: run.c 465 2011-05-19 03:46:53Z hyunghwan.chung $ * Copyright 2006-2011 Chung, Hyung-Hwan. This file is part of QSE. @@ -72,8 +72,8 @@ struct pafv * equal to sizeof(qse_size_t). */ #define IS_VALID_POSIDX(idx) \ ((idx) >= 0 && \ - (idx) < QSE_TYPE_MAX(qse_long_t) && \ - (idx) < QSE_TYPE_MAX(qse_size_t)) + (idx) <= QSE_TYPE_MAX(qse_long_t) && \ + (idx) <= QSE_TYPE_MAX(qse_size_t)) #define SETERR_ARGX_LOC(rtx,code,ea,loc) \ qse_awk_rtx_seterror ((rtx), (code), (ea), (loc))