From 4d64052d6328ba7daba8918b2d87b46c813f4090 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Sun, 10 Aug 2008 18:27:30 +0000 Subject: Revert mistake from a few minutes ago git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@696 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- lib/libpbm2.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'lib/libpbm2.c') diff --git a/lib/libpbm2.c b/lib/libpbm2.c index b7c750ce..3dbd7173 100644 --- a/lib/libpbm2.c +++ b/lib/libpbm2.c @@ -227,14 +227,12 @@ pbm_readpbmrow_bitoffset(FILE * const ifP, unsigned int const last = pbm_packed_bytes(cols+rsh) - 1; /* Position within window of rightmost byte after shift */ - unsigned char origHead, origEnd; - /* The original leftmost and rightmost chars. */ + /* The original leftmost and rightmost chars. */ + unsigned char const origHead = window[0]; + unsigned char const origEnd = window[last]; pbm_readpbmrow_packed(ifP, window, cols, format); - origHead = window[0]; - origEnd = window[last]; - if (rsh > 0) { /* Target slot doesn't start on byte boundary; right-shift. */ unsigned char carryover; -- cgit 1.4.1