summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorAlan Mackenzie <acm@muc.de>2020-06-25 17:07:16 +0000
committerAlan Mackenzie <acm@muc.de>2020-06-25 17:07:16 +0000
commit7574390099f0de11939a0e3626cf222b58863290 (patch)
treec4c69ca17b4a5369b7f1569c094680cf32284d0e /lisp
parent7d6b860245acef3c546161169e34f24e93e8066e (diff)
downloademacs-7574390099f0de11939a0e3626cf222b58863290.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).
Diffstat (limited to 'lisp')
-rw-r--r--lisp/progmodes/cc-engine.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/progmodes/cc-engine.el b/lisp/progmodes/cc-engine.el
index 8c8296fd6da..888184d2b46 100644
--- a/lisp/progmodes/cc-engine.el
+++ b/lisp/progmodes/cc-engine.el
@@ -3137,7 +3137,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)
@@ -3150,7 +3150,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