commit 2025-10-09 11:00 int VI_Minus => TypeCharInt VI_Minus in ZCppMain/ZMainHead.H

This commit is contained in:
2025-10-09 11:00:29 +09:00
parent ce0d364102
commit 9d5af62781

View File

@ -803,12 +803,10 @@ namespace ZNsMain
namespace ZNsIn*/
/*++++++++++++++++++++++++++++++++++++++++++++++++++*/
template<int TTyiByteSize> class ZtCCharIntBySize
{
public: typedef ZTypLong TypeInt;
};/*
template<int TTyiByteSize> class ZtCCharIntBySize*/
{ public: typedef ZTypLong TypeInt; };
/*++++++++++++++++++++++++++++++++++++++++++++++++++*/
template<> class ZtCCharIntBySize<ZNsIn::CI_Char1Byte>
{ public: typedef ZTypInt TypeInt; };
template<> class ZtCCharIntBySize<ZNsIn::CI_Char2Byte>
@ -7228,17 +7226,20 @@ namespace ZNsMain
TypeCharC* VP_Left = mp_TypeChar;
TypeCharC* VP_Right=rhs.mp_TypeChar;
typedef typename ZtCCharInt
<TypeChar>::TypeInt TypeCharInt;
#if(_CODE_OLD_)
TypeChar VC_Minus = 0;
#else
int VI_Minus = 0; // 페이지 하단의 'char 의 int 확장에 따른 문제의 코드' 참고.
TypeCharInt VI_Minus = 0; // 페이지 하단의 'char 의 int 확장에 따른 문제의 코드' 참고.
#endif
TypeLength VL_Index = 0;
TypeLength VL_Loop = /*::::::::::::::::::::::::::*/
TypeLength VL_Loop = /*:::::::::::::::::::::::::*/
(
ml_TypeSize <= rhs.ml_TypeSize ?
this->ml_TypeSize :
rhs. ml_TypeSize
ml_TypeSize <= rhs.ml_TypeSize
? this->ml_TypeSize
: rhs. ml_TypeSize
) ;
/*::::::::::::::::::::::::::::::::::::::::::::::::*/
@ -7251,11 +7252,11 @@ namespace ZNsMain
}/*
if((VC_Minus=*VP_Left++ - *VP_Right++)!=0)*/
#else
if((VI_Minus=int(*VP_Left++) - int(*VP_Right++))!=0)
if((VI_Minus0=TypeCharInt(*VP_Left++) - TypeCharInt(*VP_Right++))!=0)
{
return VI_Minus; // 페이지 하단의 'char 의 int 확장에 따른 문제의 코드' 참고.
}/*
if((VI_Minus=int(*VP_Left++) - int(*VP_Right++))!=0)*/
if((VI_Minus=TypeCharInt(*VP_Left++) - TypeCharInt(*VP_Right++))!=0)*/
#endif
++VL_Index;