mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-02-21 20:27:13 +01:00
Don't guess the string size when that information is already available.
This commit is contained in:
parent
e6b80a40d2
commit
69bc0ba5c2
@ -77,7 +77,7 @@ public:
|
|||||||
|
|
||||||
string overloadName = SqOverloadName::Get(funcName, argCount);
|
string overloadName = SqOverloadName::Get(funcName, argCount);
|
||||||
|
|
||||||
sq_pushstring(vm, overloadName.c_str(), -1);
|
sq_pushstring(vm, overloadName.c_str(), static_cast<SQInteger>(overloadName.size()));
|
||||||
|
|
||||||
#if !defined (SCRAT_NO_ERROR_CHECKING)
|
#if !defined (SCRAT_NO_ERROR_CHECKING)
|
||||||
if (SQ_FAILED(sq_get(vm, 1))) { // Lookup the proper overload
|
if (SQ_FAILED(sq_get(vm, 1))) { // Lookup the proper overload
|
||||||
|
Loading…
x
Reference in New Issue
Block a user