]> git.sur5r.net Git - cc65/blobdiff - src/cc65/codeseg.c
Fixed two compiler warnings.
[cc65] / src / cc65 / codeseg.c
index 52516abfecc03a5bca3d906899c002c68cea51cd..fff502d3ea6009f44a73b287499511641da8a9a5 100644 (file)
@@ -655,6 +655,11 @@ void CS_MoveEntries (CodeSeg* S, unsigned Start, unsigned Count, unsigned NewPos
  * current code end)
  */
 {
+    /* Transparently handle an empty range */
+    if (Count == 0) {
+        return;
+    }
+
     /* If NewPos is at the end of the code segment, move any labels from the
      * label pool to the first instruction of the moved range.
      */