From dff19d4be92ec2a2b0271606f7d64aef4c37e5c9 Mon Sep 17 00:00:00 2001 From: "HuYingzhuo(hugo/hyzboy)" Date: Fri, 28 Jul 2023 18:12:16 +0800 Subject: [PATCH] little improved --- inc/hgl/type/Map.cpp | 3 ++- inc/hgl/type/StrChar.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/inc/hgl/type/Map.cpp b/inc/hgl/type/Map.cpp index 65264ab..8688b8d 100644 --- a/inc/hgl/type/Map.cpp +++ b/inc/hgl/type/Map.cpp @@ -133,7 +133,8 @@ namespace hgl for(int i=0;ivalue==data) + //if((*data_array)->value==data) + if(hgl_cmp(data_array[i]->value,data)==0) return(i); ++data_array; diff --git a/inc/hgl/type/StrChar.h b/inc/hgl/type/StrChar.h index 29c6d7c..f08abda 100644 --- a/inc/hgl/type/StrChar.h +++ b/inc/hgl/type/StrChar.h @@ -2467,7 +2467,7 @@ namespace hgl const int find_str_in_array(int count,const T **str_array,const T *str) { for(int i=0;i