From: cuz Date: Tue, 6 Jul 2004 14:25:03 +0000 (+0000) Subject: Fixed a bug X-Git-Tag: V2.12.0~686 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2c3d5773f3beff84109b40b061cf2444753a5d7c;p=cc65 Fixed a bug git-svn-id: svn://svn.cc65.org/cc65/trunk@3146 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/cc65/asmcode.c b/src/cc65/asmcode.c index 9f61dc212..f81d3ebb8 100644 --- a/src/cc65/asmcode.c +++ b/src/cc65/asmcode.c @@ -83,9 +83,9 @@ void MoveCode (const CodeMark* Start, const CodeMark* End, const CodeMark* Targe int CodeRangeIsEmpty (const CodeMark* Start, const CodeMark* End) /* Return true if the given code range is empty (no code between Start and End) */ -{ +{ int Empty; - PRECONDITION (Start->Pos >= End->Pos); + PRECONDITION (Start->Pos <= End->Pos); Empty = (Start->Pos == End->Pos); if (Empty) { /* Safety */