Build bustage fix: add two casts (unsigned char* -> char* and the

reverse) for more pedantic compilers, such as SUNWspro4.2. a=leaf
This commit is contained in:
tor%cs.brown.edu 2000-04-20 19:52:26 +00:00
Родитель 6eea1d980f
Коммит 9ad3f1c2b6
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -553,7 +553,7 @@ nsClipboard::SelectionReceiver (GtkWidget *aWidget,
g_print(" len is %d\n", len);
#endif
prop.value = data;
prop.value = (unsigned char *)data;
prop.nitems = len;
prop.encoding = XInternAtom(GDK_DISPLAY(), "COMPOUND_TEXT", FALSE);
prop.format = 8;
@ -894,7 +894,7 @@ void nsClipboard::SelectionGetCB(GtkWidget *widget,
prop.nitems);
#endif
nsAllocator::Free(platformText);
platformText = prop.value;
platformText = (char *)prop.value;
platformLen = prop.nitems;
}
}