about summary refs log tree commit diff
path: root/editor
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2015-12-25 21:15:26 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2015-12-25 21:15:26 +0000
commit4ce684c4978610d1ea42be1b00f7332f3f5f337a (patch)
treef9e343be94161a4837f0f1c1d072a35538ae0f63 /editor
parent63fe73995bd1d496f1465a4446c0adc833d204dc (diff)
downloadnetpbm-mirror-4ce684c4978610d1ea42be1b00f7332f3f5f337a.tar.gz
netpbm-mirror-4ce684c4978610d1ea42be1b00f7332f3f5f337a.tar.xz
netpbm-mirror-4ce684c4978610d1ea42be1b00f7332f3f5f337a.zip
Release 10.47.59
git-svn-id: http://svn.code.sf.net/p/netpbm/code/stable@2666 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'editor')
-rw-r--r--editor/pnmpaste.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/pnmpaste.c b/editor/pnmpaste.c
index 3fd9d521..33834669 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);
 }