need a cast to initialize an unsigned char* with a char *

svn path=/trunk/kdegraphics/kdvi/; revision=81136
remotes/origin/kdvi-2.1
Thomas Leitner 25 years ago
parent 462b0207ef
commit 04f582e92f
  1. 2
      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];

Loading…
Cancel
Save