lib: add const to avoid regression

Not sure if this was meant to be legal or not, but either way this code
should have been using const anyway.
cab79b0877Jacob Young committed on 6/11/2023, 3:47:58 AM· committed by Andrew Kelleyparent0777e98
1 file changedLine totals unavailable