Compare commits

..

1 Commits

Author SHA1 Message Date
/* User with id == 0 is a fake user from git author */ sauron
70043918bb commit 2025-09-02 14:24 fix bug jin Replace() in ZCppMain/ZtCStringEx.H 2025-09-02 14:24:11 +09:00
2 changed files with 4 additions and 4 deletions

View File

@ -160,7 +160,7 @@ namespace ZNsMain
}/* }/*
__for1(TypeLength, i, VL_PosListSize)*/ __for1(TypeLength, i, VL_PosListSize)*/
if(VL_ThisSize > VL_MoveStart) if(VL_DestStart<VL_MoveStart && VL_DestStart<VL_ThisSize)
{ {
::memmove /*::::::::::::::::::::::::::::::*/ ::memmove /*::::::::::::::::::::::::::::::*/
( (
@ -170,7 +170,7 @@ namespace ZNsMain
); );
/*::::::::::::::::::::::::::::::::::::::::*/ /*::::::::::::::::::::::::::::::::::::::::*/
}/* }/*
if(VL_ThisSize > VL_MoveStart)*/ if(VL_DestStart<VL_MoveStart && VL_DestStart<VL_ThisSize)*/
this->resize(VL_NeedSize); return *this; this->resize(VL_NeedSize); return *this;
}/* }/*

View File

@ -430,7 +430,7 @@ namespace ZNsMain
}/* }/*
__for1(TypeLength, i, VL_PosListSize)*/ __for1(TypeLength, i, VL_PosListSize)*/
if(VL_ThisSize > VL_MoveStart) if(VL_DestStart<VL_MoveStart && VL_DestStart<VL_ThisSize)
{ {
::memmove /*::::::::::::::::::::::::::::::::::::::::*/ ::memmove /*::::::::::::::::::::::::::::::::::::::::*/
( (
@ -440,7 +440,7 @@ namespace ZNsMain
); );
/*::::::::::::::::::::::::::::::::::::::::::::::::::*/ /*::::::::::::::::::::::::::::::::::::::::::::::::::*/
}/* }/*
if(VL_ThisSize > VL_MoveStart)*/ if(VL_DestStart<VL_MoveStart && VL_DestStart<VL_ThisSize)*/
this->resize(VL_NeedSize); return *this; this->resize(VL_NeedSize); return *this;
}/* }/*