diff options
author | johnvg | 2010-10-07 10:53:13 +0000 |
---|---|---|
committer | johnvg | 2010-10-07 10:53:13 +0000 |
commit | 7de698d045093d33ec2b8f2e20eccbea0d452a31 (patch) | |
tree | 998a4c643fb02879a225cb447be9cc73284d1da4 /backendC | |
parent | use Libraries/ArgEnv instead of Libraries/ArgEnvWindows (for 64 bit .prj) (diff) |
convert negative line numbers to 0,
because the frontend uses -1 for no line number, the backend 0
git-svn-id: https://svn.cs.ru.nl/repos/clean-compiler/trunk@1803 1f8540f1-abd5-4d5b-9d24-4c5ce8603e2d
Diffstat (limited to 'backendC')
-rw-r--r-- | backendC/CleanCompilerSources/backend.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backendC/CleanCompilerSources/backend.c b/backendC/CleanCompilerSources/backend.c index b309c13..8c24006 100644 --- a/backendC/CleanCompilerSources/backend.c +++ b/backendC/CleanCompilerSources/backend.c @@ -2403,7 +2403,7 @@ BERuleAlt (int line, BENodeDefP lhsDefs, BENodeP lhs, BENodeDefP rhsDefs, BEStri alt->alt_lhs_defs = CollectNodeDefs (lhs, lhsDefs); alt->alt_rhs_root = rhs; alt->alt_rhs_defs = rhsDefs; - alt->alt_line = line; + alt->alt_line = line<0 ? 0 : line; alt->alt_kind = Contractum; alt->alt_strict_node_ids = rhsStrictNodeIds; @@ -2428,7 +2428,7 @@ BECodeAlt (int line, BENodeDefP lhsDefs, BENodeP lhs, BECodeBlockP codeBlock) alt->alt_lhs_defs = CollectNodeDefs (lhs, lhsDefs); alt->alt_rhs_code = codeBlock; alt->alt_rhs_defs = NULL; - alt->alt_line = line; + alt->alt_line = line<0 ? 0 : line; alt->alt_kind = ExternalCall; alt->alt_strict_node_ids = NULL; |