mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-23 10:20:48 +00:00
Replace a handrolled memcpy with an actual call to memcpy
This commit is contained in:
parent
2c3c603be2
commit
4dca2c0466
@ -225,8 +225,8 @@ void Utf8Encoder::copyFromArray(unsigned char ch, char* &out) const
|
||||
|
||||
const signed char *in = translationArray + ch*6;
|
||||
int len = *(in++);
|
||||
for (int i=0; i<len; i++)
|
||||
*(out++) = *(in++);
|
||||
memcpy(out, in, len);
|
||||
out += len;
|
||||
}
|
||||
|
||||
size_t Utf8Encoder::getLength2(const char* input, bool &ascii) const
|
||||
|
Loading…
x
Reference in New Issue
Block a user