Changed data type used to store line numbers from unsigned long to unsigned.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5222 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -110,7 +110,7 @@ void CheckAssertions (void)
|
||||
|
||||
const LineInfo* LI;
|
||||
const char* Module;
|
||||
unsigned long Line;
|
||||
unsigned Line;
|
||||
|
||||
/* Get the assertion */
|
||||
Assertion* A = CollAtUnchecked (&Assertions, I);
|
||||
@@ -129,7 +129,7 @@ void CheckAssertions (void)
|
||||
|
||||
/* If the expression is not constant, we're not able to handle it */
|
||||
if (!IsConstExpr (A->Expr)) {
|
||||
Warning ("Cannot evaluate assertion in module `%s', line %lu",
|
||||
Warning ("Cannot evaluate assertion in module `%s', line %u",
|
||||
Module, Line);
|
||||
} else if (GetExprVal (A->Expr) == 0) {
|
||||
|
||||
@@ -140,17 +140,17 @@ void CheckAssertions (void)
|
||||
|
||||
case ASSERT_ACT_WARN:
|
||||
case ASSERT_ACT_LDWARN:
|
||||
Warning ("%s(%lu): %s", Module, Line, Message);
|
||||
Warning ("%s(%u): %s", Module, Line, Message);
|
||||
break;
|
||||
|
||||
case ASSERT_ACT_ERROR:
|
||||
case ASSERT_ACT_LDERROR:
|
||||
Error ("%s(%lu): %s", Module, Line, Message);
|
||||
Error ("%s(%u): %s", Module, Line, Message);
|
||||
break;
|
||||
|
||||
default:
|
||||
Internal ("Invalid assertion action (%u) in module `%s', "
|
||||
"line %lu (file corrupt?)",
|
||||
"line %u (file corrupt?)",
|
||||
A->Action, Module, Line);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user