(svn r14410) -Codechange: one can't inject a negative number of parameters, so enforce this by using a uint.

This commit is contained in:
rubidium
2008-09-28 13:50:11 +00:00
parent b588578bcc
commit fc1ad68714
2 changed files with 3 additions and 2 deletions

View File

@@ -191,8 +191,9 @@ void SetDParamStr(uint n, const char *str)
SetDParam(n, (uint64)(size_t)str);
}
void InjectDParam(int amount)
void InjectDParam(uint amount)
{
assert((uint)amount < lengthof(_decode_parameters));
memmove(_decode_parameters + amount, _decode_parameters, sizeof(_decode_parameters) - amount * sizeof(uint64));
}