1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-19 04:53:12 +01:00

Remove some redundant casts and fix rct_sprite::AsDuck()

This commit is contained in:
Michael Steenbeek
2018-02-15 13:04:25 +01:00
committed by GitHub
parent c8c9bf70a7
commit d481cca2ed
15 changed files with 33 additions and 35 deletions

View File

@@ -62,7 +62,7 @@ char * strndup(const char * src, size_t size)
dst = (char *)memcpy(dst, src, len);
dst[len] = '\0';
return (char *)dst;
return dst;
}
#endif // !((defined (_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 200809L) || (defined(_XOPEN_SOURCE) && _XOPEN_SOURCE >= 700))