1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-17 03:10:58 -08:00

CC Mode. Fix an off by one error. Fixes bug #41809

* lisp/progmodes/cc-engine.el (c-full-pp-to-literal): Change > to >= (twice).
This commit is contained in:
Alan Mackenzie 2020-06-25 17:07:16 +00:00
parent f425a774c2
commit b2ee665024

View file

@ -3122,7 +3122,7 @@ comment at the start of cc-engine.el for more info."
(not base) ; FIXME!!! Compare base and far-base?? (not base) ; FIXME!!! Compare base and far-base??
; (2019-05-21) ; (2019-05-21)
(not end) (not end)
(> here end)) (>= here end))
(progn (progn
(setq far-base-and-state (c-parse-ps-state-below here) (setq far-base-and-state (c-parse-ps-state-below here)
far-base (car far-base-and-state) far-base (car far-base-and-state)
@ -3135,7 +3135,7 @@ comment at the start of cc-engine.el for more info."
(or (or
(and (> here base) (null end)) (and (> here base) (null end))
(null (nth 8 s)) (null (nth 8 s))
(and end (> here end)) (and end (>= here end))
(not (not
(or (or
(and (nth 3 s) ; string (and (nth 3 s) ; string