From 04f582e92f02fd985321ae986a648aaa427a428f Mon Sep 17 00:00:00 2001 From: Thomas Leitner Date: Sat, 3 Feb 2001 08:16:18 +0000 Subject: [PATCH] need a cast to initialize an unsigned char* with a char * svn path=/trunk/kdegraphics/kdvi/; revision=81136 --- pk.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pk.cpp b/pk.cpp index bf837265f..b429e62fb 100644 --- a/pk.cpp +++ b/pk.cpp @@ -371,7 +371,7 @@ void font::read_PK_char(unsigned int ch) // The data in the bitmap is now in the processor's bit order, // that is, big endian. Since XWindows needs little endian, we // need to change the bit order now. - register unsigned char* bitmapData = g->bitmap.bits; + register unsigned char* bitmapData = (unsigned char*) g->bitmap.bits; register unsigned char* endOfData = bitmapData + g->bitmap.bytes_wide*g->bitmap.h; while(bitmapData < endOfData) { *bitmapData = bitflip[*bitmapData];