mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-04-16 09:17:12 +02:00
Update Utils.cpp
This commit is contained in:
parent
9e71bb8365
commit
97907db477
@ -1,5 +1,6 @@
|
|||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
#include "Library/Utils.hpp"
|
#include "Library/Utils.hpp"
|
||||||
|
#include "Core/Utility.hpp"
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
@ -68,7 +69,7 @@ static SQInteger SqExtractIPv4(HSQUIRRELVM vm)
|
|||||||
// Push the element index
|
// Push the element index
|
||||||
sq_pushinteger(vm, i);
|
sq_pushinteger(vm, i);
|
||||||
// Push the element value
|
// Push the element value
|
||||||
sq_pushinteger(vm, std::clamp(blocks[i], 0U, 255U));
|
sq_pushinteger(vm, Clamp(blocks[i], 0U, 255U));
|
||||||
// Assign the element
|
// Assign the element
|
||||||
const SQRESULT res = sq_set(vm, -3);
|
const SQRESULT res = sq_set(vm, -3);
|
||||||
// See if the assignment failed
|
// See if the assignment failed
|
||||||
|
Loading…
x
Reference in New Issue
Block a user