Avoid implicit reliance on memcpy due to large structure copy

This commit is contained in:
UnknownShadow200 2024-05-31 21:39:13 +10:00
parent 2d362dcd01
commit cbaf9a8386
2 changed files with 2 additions and 2 deletions

View File

@ -320,7 +320,7 @@ void* cc_memchr(const void* ptr, int ch, size_t num) {
for (; num > 0; num--, a++) for (; num > 0; num--, a++)
{ {
if (*a == ch) return a; if (*a == ch) return (void*)a;
} }
return NULL; return NULL;
} }

View File

@ -1703,7 +1703,7 @@
FALSE ); FALSE );
/* save a copy of current HintMap to use when drawing initial point */ /* save a copy of current HintMap to use when drawing initial point */
glyphpath->firstHintMap = glyphpath->hintMap; /* structure copy */ ft_memcpy(&glyphpath->firstHintMap, &glyphpath->hintMap, sizeof(glyphpath->hintMap));
} }