vcs-svn: suppress a signed/unsigned comparison warning

The preceding code checks that view->max_off is nonnegative and (off + width) fits in an off_t, so this code is already safe. Signed-off-by: David Barr <davidbarr@google.com> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>

David Barr committed Jun 1, 2012 at 00:41 UTC c68038effed2f1031848330cca46e85fc79e3ab2
1 file changed +1 -1
vcs-svn/sliding_window.c
+1 -1
@@ -54,7 +54,7 @@ int move_window(struct sliding_view *view, off_t off, size_t width)
54 return -1;
55 if (off < view->off || off + width < view->off + view->width)
56 return error("invalid delta: window slides left");
57 - if (view->max_off >= 0 && view->max_off < off + width)
57 + if (view->max_off >= 0 && view->max_off < off + (off_t) width)
58 return error("delta preimage ends early");
59
60 file_offset = view->off + view->buf.len;