char string[32];
__ecereMethod___ecereNameSpace__ecere__sys__File_GetString(this, string, sizeof (string));
-return strtoul(string, (((void *)0)), 16);
+return (unsigned int)strtoul(string, (((void *)0)), 16);
}
float __ecereMethod___ecereNameSpace__ecere__sys__File_GetFloat(struct __ecereNameSpace__ecere__com__Instance * this)
char string[20];
__ecereNameSpace__ecere__sys__GetString(buffer, string, 20);
-return strtoul(string, (((void *)0)), 16);
+return (unsigned int)strtoul(string, (((void *)0)), 16);
}
double __ecereNameSpace__ecere__sys__FloatFromString(const char * string)
}
else if(!strcmp(curParam->__anon1.dataTypeString, "uint"))
{
-argument.__anon1.expression.__anon1.ui = strtoul(value, (((void *)0)), 0);
+argument.__anon1.expression.__anon1.ui = (unsigned int)strtoul(value, (((void *)0)), 0);
}
else if(!strcmp(curParam->__anon1.dataTypeString, "char"))
{
}
else
{
-argument.__anon1.expression.__anon1.i = strtol(value, (((void *)0)), 0);
+argument.__anon1.expression.__anon1.i = (int)strtol(value, (((void *)0)), 0);
}
break;
}
unsigned int typedByReference : 1;
unsigned int casted : 1;
unsigned int pointerAlignment : 1;
+unsigned int isLong : 1;
} __attribute__ ((gcc_struct));
struct __ecereNameSpace__ecere__com__ClassTemplateParameter;
unsigned int typedByReference : 1;
unsigned int casted : 1;
unsigned int pointerAlignment : 1;
+unsigned int isLong : 1;
} __attribute__ ((gcc_struct));
extern void DeclareMethod(struct External * neededFor, struct __ecereNameSpace__ecere__com__Method * method, const char * name);
unsigned int typedByReference : 1;
unsigned int casted : 1;
unsigned int pointerAlignment : 1;
+unsigned int isLong : 1;
} __attribute__ ((gcc_struct));
struct TemplatedType * FindTemplateTypeParameter(struct Context * ctx, const char * name);
specType->kind = 4;
else
specType->kind = 3;
+specType->isLong = 1;
isLong = 1;
}
else if(spec->__anon1.specifier == FLOAT)
ProcessExpressionType(exp);
ComputeExpression(exp);
if(exp->type == 2)
-type->bitFieldCount = strtoul(exp->__anon1.__anon1.constant, (((void *)0)), 0);
+type->bitFieldCount = (unsigned int)strtoul(exp->__anon1.__anon1.constant, (((void *)0)), 0);
}
break;
}
unsigned int typedByReference : 1;
unsigned int casted : 1;
unsigned int pointerAlignment : 1;
+unsigned int isLong : 1;
} __attribute__ ((gcc_struct));
struct Instantiation;
unsigned int typedByReference : 1;
unsigned int casted : 1;
unsigned int pointerAlignment : 1;
+unsigned int isLong : 1;
} __attribute__ ((gcc_struct));
struct TypeName;
unsigned int typedByReference : 1;
unsigned int casted : 1;
unsigned int pointerAlignment : 1;
+unsigned int isLong : 1;
} __attribute__ ((gcc_struct));
struct Symbol
__ecereNameSpace__ecere__com__eClass_AddDataMember(class, "typedByReference", "bool:1", 4, 4, 1);
__ecereNameSpace__ecere__com__eClass_AddDataMember(class, "casted", "bool:1", 4, 4, 1);
__ecereNameSpace__ecere__com__eClass_AddDataMember(class, "pointerAlignment", "bool:1", 4, 4, 1);
+__ecereNameSpace__ecere__com__eClass_AddDataMember(class, "isLong", "bool:1", 4, 4, 1);
__ecerePropM_Type_specConst = __ecereNameSpace__ecere__com__eClass_AddProperty(class, "specConst", "bool", 0, __ecereProp_Type_Get_specConst, 1);
if(((struct __ecereNameSpace__ecere__com__Module *)(((char *)module + sizeof(struct __ecereNameSpace__ecere__com__Instance))))->application == ((struct __ecereNameSpace__ecere__com__Module *)(((char *)__thisModule + sizeof(struct __ecereNameSpace__ecere__com__Instance))))->application)
__ecereProp_Type_specConst = __ecerePropM_Type_specConst, __ecerePropM_Type_specConst = (void *)0;
do
{
if(expression_yydebug)
-fprintf((bsl_stderr()), "Stack size increased to %lu\n", yystacksize);
+fprintf((bsl_stderr()), "Stack size increased to %lu\n", (unsigned long int)yystacksize);
}while((0));
if(yyss + yystacksize - 1 <= yyssp)
goto yyabortlab;
unsigned int typedByReference : 1;
unsigned int casted : 1;
unsigned int pointerAlignment : 1;
+unsigned int isLong : 1;
} __attribute__ ((gcc_struct));
struct PropertyDef;
unsigned int typedByReference : 1;
unsigned int casted : 1;
unsigned int pointerAlignment : 1;
+unsigned int isLong : 1;
} __attribute__ ((gcc_struct));
struct Specifier
do
{
if(yydebug)
-fprintf((bsl_stderr()), "Stack size increased to %lu\n", yystacksize);
+fprintf((bsl_stderr()), "Stack size increased to %lu\n", (unsigned long int)yystacksize);
}while((0));
if(yyss + yystacksize - 1 <= yyssp)
goto yyabortlab;
unsigned int typedByReference : 1;
unsigned int casted : 1;
unsigned int pointerAlignment : 1;
+unsigned int isLong : 1;
} __attribute__ ((gcc_struct));
struct Declaration;
unsigned int typedByReference : 1;
unsigned int casted : 1;
unsigned int pointerAlignment : 1;
+unsigned int isLong : 1;
} __attribute__ ((gcc_struct));
extern struct __ecereNameSpace__ecere__com__Method * __ecereNameSpace__ecere__com__eClass_AddMethod(struct __ecereNameSpace__ecere__com__Class * _class, const char * name, const char * type, void * function, int declMode);
unsigned int typedByReference : 1;
unsigned int casted : 1;
unsigned int pointerAlignment : 1;
+unsigned int isLong : 1;
} __attribute__ ((gcc_struct));
unsigned int __ecereProp_Type_Get_isPointerTypeSize(struct Type * this);
unsigned int typedByReference : 1;
unsigned int casted : 1;
unsigned int pointerAlignment : 1;
+unsigned int isLong : 1;
} __attribute__ ((gcc_struct));
struct Specifier
{
return 0;
}
-if(type1->kind == type2->kind)
+if(type1->kind == type2->kind && type1->isLong == type2->isLong)
{
switch(type1->kind)
{
}
else
{
-op.__anon1.ui = strtoul(exp->__anon1.__anon1.constant, (((void *)0)), 0);
+op.__anon1.ui = (unsigned int)strtoul(exp->__anon1.__anon1.constant, (((void *)0)), 0);
op.ops = uintOps;
}
op.kind = 3;
unsigned int typedByReference : 1;
unsigned int casted : 1;
unsigned int pointerAlignment : 1;
+unsigned int isLong : 1;
} __attribute__ ((gcc_struct));
extern void ProcessMethodType(struct __ecereNameSpace__ecere__com__Method * method);
unsigned int typedByReference : 1;
unsigned int casted : 1;
unsigned int pointerAlignment : 1;
+unsigned int isLong : 1;
} __attribute__ ((gcc_struct));
struct Specifier
unsigned int typedByReference : 1;
unsigned int casted : 1;
unsigned int pointerAlignment : 1;
+unsigned int isLong : 1;
} __attribute__ ((gcc_struct));
unsigned int IsVoidPtrCast(struct TypeName * typeName)
do
{
if(type_yydebug)
-fprintf((bsl_stderr()), "Stack size increased to %lu\n", yystacksize);
+fprintf((bsl_stderr()), "Stack size increased to %lu\n", (unsigned long int)yystacksize);
}while((0));
if(yyss + yystacksize - 1 <= yyssp)
goto yyabortlab;
specType.kind = int64Type;
else
specType.kind = intType;
+ specType.isLong = true;
isLong = true;
}
else if(spec.specifier == FLOAT) specType.kind = floatType;
bool typedByReference:1; // Originally typed by reference, regardless of class type
bool casted:1;
bool pointerAlignment:1; // true if the alignment is the pointer size
+ bool isLong:1; // true if this is truly a long set as a int/int64 (need to improve long support)
// bool wasThisClass:1;
// TODO: Add _Complex & _Imaginary support
// bool complex:1, imaginary:1;
return false;
}
- if(type1.kind == type2.kind)
+ if(type1.kind == type2.kind && type1.isLong == type2.isLong)
{
switch(type1.kind)
{