diff --git a/core/smn_keyvalues.cpp b/core/smn_keyvalues.cpp index 34d1ce33..12e5239a 100644 --- a/core/smn_keyvalues.cpp +++ b/core/smn_keyvalues.cpp @@ -189,7 +189,7 @@ static cell_t smn_KvSetUInt64(IPluginContext *pCtx, const cell_t *params) pCtx->LocalToStringNULL(params[2], &key); pCtx->LocalToPhysAddr(params[3], &addr); - value = static_cast(*addr); + value = *reinterpret_cast(addr); pStk->pCurRoot.front()->SetUint64(key, value); return 1;