diff --git a/Jupiter/Shift_String_Imp.h b/Jupiter/Shift_String_Imp.h index d807d5c..41564e6 100644 --- a/Jupiter/Shift_String_Imp.h +++ b/Jupiter/Shift_String_Imp.h @@ -38,15 +38,15 @@ template Jupiter::Shift_String_Type::~Shift_String_Type() template size_t Jupiter::Shift_String_Type::shiftLeft(size_t len) { size_t offset = Jupiter::String_Type::str - Jupiter::Shift_String_Type::base; - if (length > offset) length = offset; + if (len > offset) len = offset; Jupiter::String_Type::str -= len; Jupiter::String_Type::length += len; - return length; + return len; } template size_t Jupiter::Shift_String_Type::shiftRight(size_t len) { - if (length > Jupiter::String_Type::length) length = Jupiter::String_Type::length; + if (len > Jupiter::String_Type::length) len = Jupiter::String_Type::length; Jupiter::String_Type::str += len; Jupiter::String_Type::length -= len; return len;