This is an autogenerated patch header for a single-debian-patch file. The
delta against upstream is either kept as a single patch, or maintained
in some VCS, and exported as a single patch instead of more manageable
atomic patches.

--- cachefilesd-0.10.10.orig/cachefilesd.c
+++ cachefilesd-0.10.10/cachefilesd.c
@@ -1389,13 +1389,13 @@ next:
 				if (cullready[loop] == child)
 					break;
 
-			if (loop == nr_in_ready_table - 1) {
+			if (loop + 1 == nr_in_ready_table) {
 				/* child was oldest object */
 				cullready[--nr_in_ready_table] = (void *)(0x6b000000 | __LINE__);
 				put_object(child);
 				goto removed;
 			}
-			else if (loop < nr_in_ready_table - 1) {
+			else if (loop + 1 < nr_in_ready_table) {
 				/* child was somewhere in between */
 				memmove(&cullready[loop],
 					&cullready[loop + 1],
@@ -1409,12 +1409,12 @@ next:
 				if (cullbuild[loop] == child)
 					break;
 
-			if (loop == nr_in_build_table - 1) {
+			if (loop + 1 == nr_in_build_table) {
 				/* child was oldest object */
 				cullbuild[--nr_in_build_table] = (void *)(0x6b000000 | __LINE__);
 				put_object(child);
 			}
-			else if (loop < nr_in_build_table - 1) {
+			else if (loop + 1 < nr_in_build_table) {
 				/* child was somewhere in between */
 				memmove(&cullbuild[loop],
 					&cullbuild[loop + 1],
