these casts not required.

This commit is contained in:
Enno Rehling 2018-01-25 15:43:29 +01:00
parent 495c45391d
commit 6a9320a0d0

View file

@ -597,18 +597,18 @@ static int sp_summon_familiar(castorder * co)
} }
else { else {
if (dh == 0) { if (dh == 0) {
bytes = str_strlcpy(bufp, (const char *)LOC(mage->faction->locale, bytes = str_strlcpy(bufp, LOC(mage->faction->locale,
"list_and"), size); "list_and"), size);
} }
else { else {
bytes = str_strlcpy(bufp, (const char *)", ", size); bytes = str_strlcpy(bufp, ", ", size);
} }
assert(bytes >= 0 && bytes <= INT_MAX); assert(bytes <= INT_MAX);
BUFFER_STRCAT(bufp, size, bytes); BUFFER_STRCAT(bufp, size, bytes);
} }
bytes = str_strlcpy(bufp, skillname((skill_t)sk, mage->faction->locale), bytes = str_strlcpy(bufp, skillname((skill_t)sk, mage->faction->locale),
size); size);
assert(bytes >= 0 && bytes <= INT_MAX); assert(bytes <= INT_MAX);
BUFFER_STRCAT(bufp, size, (int)bytes); BUFFER_STRCAT(bufp, size, (int)bytes);
} }
} }