Skip to content

assert: fix single assert first line

If simple assert is called in the very first line of a file and it causes an error, it will report the wrong code. The reason is that the column that is reported is faulty.

I tested this locally as it is not as nice to write a proper test for this and I am uncertain if it is worth it adding one. I feel it should be fine to land this without a test if no one disagrees.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

Merge request reports

Loading