From 69bd3c36d6eaaaa74f14e841103d5c2f2ed6f6d1 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Wed, 9 Dec 2015 02:52:46 +0000 Subject: Release 10.72.04 git-svn-id: http://svn.code.sf.net/p/netpbm/code/advanced@2663 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- editor/pnmpaste.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editor/pnmpaste.c') diff --git a/editor/pnmpaste.c b/editor/pnmpaste.c index 0cd9b23b..a47e1d66 100644 --- a/editor/pnmpaste.c +++ b/editor/pnmpaste.c @@ -125,7 +125,7 @@ rightBits(unsigned char const x, -----------------------------------------------------------------------------*/ assert(n <= 8); - return (x << (8-n)) >> (8-n); + return ((unsigned char)(x << (8-n))) >> (8-n); } -- cgit 1.4.1