]> code.delx.au - gnu-emacs/blobdiff - src/region-cache.c
Ibuffer change marks
[gnu-emacs] / src / region-cache.c
index 2bd091fe4e1f058bbb93be06ca91fd246512ad5d..45849568bff7f6409794f434787a558d9b2ba480 100644 (file)
@@ -1,14 +1,14 @@
 /* Caching facts about regions of the buffer, for optimization.
 
-Copyright (C) 1985-1989, 1993, 1995, 2001-2014 Free Software Foundation,
+Copyright (C) 1985-1989, 1993, 1995, 2001-2016 Free Software Foundation,
 Inc.
 
 This file is part of GNU Emacs.
 
 GNU Emacs is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
+the Free Software Foundation, either version 3 of the License, or (at
+your option) any later version.
 
 GNU Emacs is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -23,7 +23,6 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 #include <stdio.h>
 
 #include "lisp.h"
-#include "character.h"
 #include "buffer.h"
 #include "region-cache.h"
 
@@ -315,7 +314,7 @@ delete_cache_boundaries (struct region_cache *c,
   ptrdiff_t len = end - start;
 
   /* Gotta be in range.  */
-  eassert (start >= 0 && end <= c->cache_len);
+  eassert (0 <= start && end <= c->cache_len);
 
   /* Gotta be in order.  */
   eassert (start <= end);