Fixed some casting issues that Ubuntu object to.
- Test on macOS, Win10, Ubuntu. - No version bump for this change.
This commit is contained in:
parent
ce1e638a0f
commit
24afc6a6fa
|
@ -384,7 +384,7 @@ TidyMessageArgument TY_(getNextMessageArgument)( TidyMessageImpl message, TidyIt
|
|||
|
||||
TidyFormatParameterType TY_(getArgType)( TidyMessageImpl message, TidyMessageArgument* arg )
|
||||
{
|
||||
int argNum = (int)*arg;
|
||||
int argNum = (int)(size_t)*arg;
|
||||
assert( argNum <= message.argcount );
|
||||
|
||||
return message.arguments[argNum].type;
|
||||
|
@ -393,7 +393,7 @@ TidyFormatParameterType TY_(getArgType)( TidyMessageImpl message, TidyMessageArg
|
|||
|
||||
ctmbstr TY_(getArgFormat)( TidyMessageImpl message, TidyMessageArgument* arg )
|
||||
{
|
||||
int argNum = (int)*arg;
|
||||
int argNum = (int)(size_t)*arg;
|
||||
assert( argNum <= message.argcount );
|
||||
|
||||
return message.arguments[argNum].format;
|
||||
|
@ -402,7 +402,7 @@ ctmbstr TY_(getArgFormat)( TidyMessageImpl message, TidyMessageArgument* arg )
|
|||
|
||||
ctmbstr TY_(getArgValueString)( TidyMessageImpl message, TidyMessageArgument* arg )
|
||||
{
|
||||
int argNum = (int)*arg;
|
||||
int argNum = (int)(size_t)*arg;
|
||||
assert( argNum <= message.argcount );
|
||||
assert( message.arguments[argNum].type == tidyFormatType_STRING);
|
||||
|
||||
|
@ -412,7 +412,7 @@ ctmbstr TY_(getArgValueString)( TidyMessageImpl message, TidyMessageArgument* ar
|
|||
|
||||
uint TY_(getArgValueUInt)( TidyMessageImpl message, TidyMessageArgument* arg )
|
||||
{
|
||||
int argNum = (int)*arg;
|
||||
int argNum = (int)(size_t)*arg;
|
||||
assert( argNum <= message.argcount );
|
||||
assert( message.arguments[argNum].type == tidyFormatType_UINT);
|
||||
|
||||
|
@ -422,7 +422,7 @@ uint TY_(getArgValueUInt)( TidyMessageImpl message, TidyMessageArgument* arg )
|
|||
|
||||
int TY_(getArgValueInt)( TidyMessageImpl message, TidyMessageArgument* arg )
|
||||
{
|
||||
int argNum = (int)*arg;
|
||||
int argNum = (int)(size_t)*arg;
|
||||
assert( argNum <= message.argcount );
|
||||
assert( message.arguments[argNum].type == tidyFormatType_INT);
|
||||
|
||||
|
@ -432,7 +432,7 @@ int TY_(getArgValueInt)( TidyMessageImpl message, TidyMessageArgument* arg )
|
|||
|
||||
double TY_(getArgValueDouble)( TidyMessageImpl message, TidyMessageArgument* arg )
|
||||
{
|
||||
int argNum = (int)*arg;
|
||||
int argNum = (int)(size_t)*arg;
|
||||
assert( argNum <= message.argcount );
|
||||
assert( message.arguments[argNum].type == tidyFormatType_DOUBLE);
|
||||
|
||||
|
|
Loading…
Reference in a new issue