mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-28 19:21:04 +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;
|
const signed char *in = translationArray + ch*6;
|
||||||
int len = *(in++);
|
int len = *(in++);
|
||||||
for (int i=0; i<len; i++)
|
memcpy(out, in, len);
|
||||||
*(out++) = *(in++);
|
out += len;
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t Utf8Encoder::getLength2(const char* input, bool &ascii) const
|
size_t Utf8Encoder::getLength2(const char* input, bool &ascii) const
|
||||||
|
Loading…
x
Reference in New Issue
Block a user