зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
6eea1d980f
Коммит
9ad3f1c2b6
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче