mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-01-19 12:07:13 +01:00
Avoid compile errors from implicit cast to int by making the type explicit.
This commit is contained in:
parent
6ec8ca620f
commit
c5c3af4f5e
@ -115,7 +115,7 @@ SQRESULT SqGrabPlayerMessageColor(HSQUIRRELVM vm, Int32 idx, Uint32 & color, Int
|
|||||||
// Attempt to treat the value as a hex color
|
// Attempt to treat the value as a hex color
|
||||||
color = ConvTo< Uint32 >::From(std::strtoull(++str, nullptr, 16));
|
color = ConvTo< Uint32 >::From(std::strtoull(++str, nullptr, 16));
|
||||||
// Adjust the color if necessary
|
// Adjust the color if necessary
|
||||||
switch (ClampMin(--len, 0))
|
switch (ClampMin(--len, static_cast< SQInteger >(0)))
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
{
|
{
|
||||||
@ -164,7 +164,7 @@ SQRESULT SqGrabPlayerMessageColor(HSQUIRRELVM vm, Int32 idx, Uint32 & color, Int
|
|||||||
// Attempt to treat the value as a hex color
|
// Attempt to treat the value as a hex color
|
||||||
color = ConvTo< Uint32 >::From(std::strtoull(str, nullptr, 16));
|
color = ConvTo< Uint32 >::From(std::strtoull(str, nullptr, 16));
|
||||||
// Adjust the color if necessary
|
// Adjust the color if necessary
|
||||||
switch (ClampMin(len-2, 0))
|
switch (ClampMin(len-2, static_cast< SQInteger >(0)))
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user