]> git.sur5r.net Git - cc65/blobdiff - src/ca65/span.c
Complete redesign of line info generation. Uses spans instead of a fragment
[cc65] / src / ca65 / span.c
index 69d44ca45489a32758a18a13f25c0d7112c4735b..e7339e78c595326294db4b61f878a32b9163db46 100644 (file)
@@ -165,7 +165,9 @@ void WriteSpans (const Collection* Spans)
         /* Get next range */
         const Span* S = CollConstAt (Spans, I);
 
-        /* Write data for th span We will write the size instead of the end
+        CHECK (S->End > S->Start);
+
+        /* Write data for the span We will write the size instead of the end
          * offset to save some bytes, since most spans are expected to be
          * rather small.
          */