Browse Source

Fixed bug in String_Type::replace().

release/0.19
JustinAJ 10 years ago
parent
commit
2cd14a3b5b
  1. 2
      Jupiter/String_Type_Imp.h
  2. BIN
      Release/Jupiter.lib

2
Jupiter/String_Type_Imp.h

@ -289,6 +289,8 @@ template<typename T> size_t Jupiter::String_Type<T>::replace(const T *target, si
size_t *tInstances = new size_t[instancesSize * 2]; size_t *tInstances = new size_t[instancesSize * 2];
for (instanceCount = 0; instanceCount != instancesSize; instanceCount++) for (instanceCount = 0; instanceCount != instancesSize; instanceCount++)
tInstances[instanceCount] = instances[instanceCount]; tInstances[instanceCount] = instances[instanceCount];
delete[] instances;
instances = tInstances;
instancesSize *= 2; instancesSize *= 2;
} }
instances[instanceCount] = i; instances[instanceCount] = i;

BIN
Release/Jupiter.lib

Binary file not shown.
Loading…
Cancel
Save