Fix KeyValues.SetUInt64 truncating value (#635).
This commit is contained in:
parent
44c744b8fd
commit
fdac8a1677
@ -189,7 +189,7 @@ static cell_t smn_KvSetUInt64(IPluginContext *pCtx, const cell_t *params)
|
|||||||
pCtx->LocalToStringNULL(params[2], &key);
|
pCtx->LocalToStringNULL(params[2], &key);
|
||||||
pCtx->LocalToPhysAddr(params[3], &addr);
|
pCtx->LocalToPhysAddr(params[3], &addr);
|
||||||
|
|
||||||
value = static_cast<uint64>(*addr);
|
value = *reinterpret_cast<uint64 *>(addr);
|
||||||
pStk->pCurRoot.front()->SetUint64(key, value);
|
pStk->pCurRoot.front()->SetUint64(key, value);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user