From f57c93a7e38db4c6d87cfc88c0e1d4f4112c065f Mon Sep 17 00:00:00 2001 From: Chaoqi Zhang Date: Wed, 25 May 2022 23:56:18 +0800 Subject: Update SpecialFunctionHandler.cpp use size() to get N in bind(), just like the way in prepare(). --- lib/Core/SpecialFunctionHandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/Core/SpecialFunctionHandler.cpp b/lib/Core/SpecialFunctionHandler.cpp index e2ff9cb2..2b788d60 100644 --- a/lib/Core/SpecialFunctionHandler.cpp +++ b/lib/Core/SpecialFunctionHandler.cpp @@ -204,7 +204,7 @@ void SpecialFunctionHandler::prepare( } void SpecialFunctionHandler::bind() { - unsigned N = sizeof(handlerInfo)/sizeof(handlerInfo[0]); + unsigned N = size(); for (unsigned i=0; i