commit 2025-10-09 11:00 int VI_Minus => TypeCharInt VI_Minus in ZCppMain/ZMainHead.H
This commit is contained in:
@ -803,12 +803,10 @@ namespace ZNsMain
|
|||||||
namespace ZNsIn*/
|
namespace ZNsIn*/
|
||||||
|
|
||||||
|
|
||||||
|
/*++++++++++++++++++++++++++++++++++++++++++++++++++*/
|
||||||
template<int TTyiByteSize> class ZtCCharIntBySize
|
template<int TTyiByteSize> class ZtCCharIntBySize
|
||||||
{
|
{ public: typedef ZTypLong TypeInt; };
|
||||||
public: typedef ZTypLong TypeInt;
|
/*++++++++++++++++++++++++++++++++++++++++++++++++++*/
|
||||||
};/*
|
|
||||||
template<int TTyiByteSize> class ZtCCharIntBySize*/
|
|
||||||
|
|
||||||
template<> class ZtCCharIntBySize<ZNsIn::CI_Char1Byte>
|
template<> class ZtCCharIntBySize<ZNsIn::CI_Char1Byte>
|
||||||
{ public: typedef ZTypInt TypeInt; };
|
{ public: typedef ZTypInt TypeInt; };
|
||||||
template<> class ZtCCharIntBySize<ZNsIn::CI_Char2Byte>
|
template<> class ZtCCharIntBySize<ZNsIn::CI_Char2Byte>
|
||||||
@ -7228,17 +7226,20 @@ namespace ZNsMain
|
|||||||
TypeCharC* VP_Left = mp_TypeChar;
|
TypeCharC* VP_Left = mp_TypeChar;
|
||||||
TypeCharC* VP_Right=rhs.mp_TypeChar;
|
TypeCharC* VP_Right=rhs.mp_TypeChar;
|
||||||
|
|
||||||
|
typedef typename ZtCCharInt
|
||||||
|
<TypeChar>::TypeInt TypeCharInt;
|
||||||
|
|
||||||
#if(_CODE_OLD_)
|
#if(_CODE_OLD_)
|
||||||
TypeChar VC_Minus = 0;
|
TypeChar VC_Minus = 0;
|
||||||
#else
|
#else
|
||||||
int VI_Minus = 0; // 페이지 하단의 'char 의 int 확장에 따른 문제의 코드' 참고.
|
TypeCharInt VI_Minus = 0; // 페이지 하단의 'char 의 int 확장에 따른 문제의 코드' 참고.
|
||||||
#endif
|
#endif
|
||||||
TypeLength VL_Index = 0;
|
TypeLength VL_Index = 0;
|
||||||
TypeLength VL_Loop = /*::::::::::::::::::::::::::*/
|
TypeLength VL_Loop = /*:::::::::::::::::::::::::*/
|
||||||
(
|
(
|
||||||
ml_TypeSize <= rhs.ml_TypeSize ?
|
ml_TypeSize <= rhs.ml_TypeSize
|
||||||
this->ml_TypeSize :
|
? this->ml_TypeSize
|
||||||
rhs. ml_TypeSize
|
: rhs. ml_TypeSize
|
||||||
) ;
|
) ;
|
||||||
/*::::::::::::::::::::::::::::::::::::::::::::::::*/
|
/*::::::::::::::::::::::::::::::::::::::::::::::::*/
|
||||||
|
|
||||||
@ -7251,11 +7252,11 @@ namespace ZNsMain
|
|||||||
}/*
|
}/*
|
||||||
if((VC_Minus=*VP_Left++ - *VP_Right++)!=0)*/
|
if((VC_Minus=*VP_Left++ - *VP_Right++)!=0)*/
|
||||||
#else
|
#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 확장에 따른 문제의 코드' 참고.
|
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
|
#endif
|
||||||
|
|
||||||
++VL_Index;
|
++VL_Index;
|
||||||
|
Reference in New Issue
Block a user