projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Just to prevent a compiler crash
[fw/sdcc]
/
src
/
SDCCast.c
diff --git
a/src/SDCCast.c
b/src/SDCCast.c
index df6cccffaba0b7064b7d3b9211a721d5885f2fed..6b384a7e77b929368aa5a4e4a4f55a84eec1466f 100644
(file)
--- a/
src/SDCCast.c
+++ b/
src/SDCCast.c
@@
-738,7
+738,7
@@
processParms (ast * func,
}
/* the parameter type must be at least castable */
}
/* the parameter type must be at least castable */
- if (c
heck
Type (defParm->type, actParm->ftype) == 0)
+ if (c
ompare
Type (defParm->type, actParm->ftype) == 0)
{
werror (E_TYPE_MISMATCH_PARM, *parmNumber);
werror (E_CONTINUE, "defined type ");
{
werror (E_TYPE_MISMATCH_PARM, *parmNumber);
werror (E_CONTINUE, "defined type ");
@@
-750,7
+750,7
@@
processParms (ast * func,
}
/* if the parameter is castable then add the cast */
}
/* if the parameter is castable then add the cast */
- if (c
heck
Type (defParm->type, actParm->ftype) < 0)
+ if (c
ompare
Type (defParm->type, actParm->ftype) < 0)
{
ast *pTree = resolveSymbols (copyAst (actParm));
{
ast *pTree = resolveSymbols (copyAst (actParm));
@@
-2724,7
+2724,7
@@
decorateType (ast * tree)
/* if they are pointers they must be castable */
if (IS_PTR (LTYPE (tree)) && IS_PTR (RTYPE (tree)))
{
/* if they are pointers they must be castable */
if (IS_PTR (LTYPE (tree)) && IS_PTR (RTYPE (tree)))
{
- if (c
heck
Type (LTYPE (tree), RTYPE (tree)) == 0)
+ if (c
ompare
Type (LTYPE (tree), RTYPE (tree)) == 0)
{
werror (E_COMPARE_OP);
fprintf (stderr, "comparing type ");
{
werror (E_COMPARE_OP);
fprintf (stderr, "comparing type ");
@@
-2741,7
+2741,7
@@
decorateType (ast * tree)
if (!((IS_PTR (LTYPE (tree)) && IS_LITERAL (RTYPE (tree))) ||
(IS_PTR (RTYPE (tree)) && IS_LITERAL (LTYPE (tree)))))
if (!((IS_PTR (LTYPE (tree)) && IS_LITERAL (RTYPE (tree))) ||
(IS_PTR (RTYPE (tree)) && IS_LITERAL (LTYPE (tree)))))
- if (c
heck
Type (LTYPE (tree), RTYPE (tree)) == 0)
+ if (c
ompare
Type (LTYPE (tree), RTYPE (tree)) == 0)
{
werror (E_COMPARE_OP);
fprintf (stderr, "comparing type ");
{
werror (E_COMPARE_OP);
fprintf (stderr, "comparing type ");
@@
-2798,7
+2798,7
@@
decorateType (ast * tree)
case ':':
/* if they don't match we have a problem */
case ':':
/* if they don't match we have a problem */
- if (c
heck
Type (LTYPE (tree), RTYPE (tree)) == 0)
+ if (c
ompare
Type (LTYPE (tree), RTYPE (tree)) == 0)
{
werror (E_TYPE_MISMATCH, "conditional operator", " ");
goto errorTreeReturn;
{
werror (E_TYPE_MISMATCH, "conditional operator", " ");
goto errorTreeReturn;
@@
-2963,7
+2963,7
@@
decorateType (ast * tree)
}
/* they should either match or be castable */
}
/* they should either match or be castable */
- if (c
heck
Type (LTYPE (tree), RTYPE (tree)) == 0)
+ if (c
ompare
Type (LTYPE (tree), RTYPE (tree)) == 0)
{
werror (E_TYPE_MISMATCH, "assignment", " ");
fprintf (stderr, "type --> '");
{
werror (E_TYPE_MISMATCH, "assignment", " ");
fprintf (stderr, "type --> '");
@@
-3053,7
+3053,7
@@
decorateType (ast * tree)
if (!tree->right)
goto voidcheck;
if (!tree->right)
goto voidcheck;
- if (c
heck
Type (currFunc->type->next, RTYPE (tree)) == 0)
+ if (c
ompare
Type (currFunc->type->next, RTYPE (tree)) == 0)
{
werror (E_RETURN_MISMATCH);
goto errorTreeReturn;
{
werror (E_RETURN_MISMATCH);
goto errorTreeReturn;
@@
-3068,7
+3068,7
@@
decorateType (ast * tree)
}
/* if there is going to be a casing required then add it */
}
/* if there is going to be a casing required then add it */
- if (c
heck
Type (currFunc->type->next, RTYPE (tree)) < 0)
+ if (c
ompare
Type (currFunc->type->next, RTYPE (tree)) < 0)
{
#if 0 && defined DEMAND_INTEGER_PROMOTION
if (IS_INTEGRAL (currFunc->type->next))
{
#if 0 && defined DEMAND_INTEGER_PROMOTION
if (IS_INTEGRAL (currFunc->type->next))