diff options
author | Alan Mackenzie <acm@muc.de> | 2020-06-25 17:07:16 +0000 |
---|---|---|
committer | Alan Mackenzie <acm@muc.de> | 2020-11-24 16:34:07 +0000 |
commit | b2ee6650243ed2777f3a6c400f194f770f00da6f (patch) | |
tree | 969fefdc23fa53122af9ee91a5a96462dfab9b77 | |
parent | f425a774c23ef683e3c052782a497ea30c0ebd10 (diff) | |
download | emacs-b2ee6650243ed2777f3a6c400f194f770f00da6f.tar.gz |
CC Mode. Fix an off by one error. Fixes bug #41809
* lisp/progmodes/cc-engine.el (c-full-pp-to-literal): Change > to >= (twice).
-rw-r--r-- | lisp/progmodes/cc-engine.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/progmodes/cc-engine.el b/lisp/progmodes/cc-engine.el index f751e72de47..babe6e74760 100644 --- a/lisp/progmodes/cc-engine.el +++ b/lisp/progmodes/cc-engine.el @@ -3122,7 +3122,7 @@ comment at the start of cc-engine.el for more info." (not base) ; FIXME!!! Compare base and far-base?? ; (2019-05-21) (not end) - (> here end)) + (>= here end)) (progn (setq far-base-and-state (c-parse-ps-state-below here) far-base (car far-base-and-state) @@ -3135,7 +3135,7 @@ comment at the start of cc-engine.el for more info." (or (and (> here base) (null end)) (null (nth 8 s)) - (and end (> here end)) + (and end (>= here end)) (not (or (and (nth 3 s) ; string |