Suppress GCC 12.1.1 warnings.
[pspp] / tests / language / lexer / segment-test.c
index acb444f20018c3dceb87da7a106592be21acaed9..5977e8fce69236c868d4035f14515350d385afaf 100644 (file)
@@ -155,6 +155,7 @@ check_segmentation (const char *input, size_t length, bool print_segments)
                    offset);
         }
       assert (offset + n <= length);
+      assert (offset <= length);
 
       if (type == SEG_NEWLINE)
         {