Fix MSVC warnings in test/fonts.cxx (issue #109)

This commit is contained in:
Albrecht Schlosser 2021-08-31 00:26:56 +02:00
parent c8c1f51db7
commit c91713fd88

View File

@ -152,7 +152,7 @@ void add_point_cb(Fl_Widget *w, void *d)
{ {
unsigned char *fd = vec[current_char]; unsigned char *fd = vec[current_char];
while (*fd) fd++; while (*fd) fd++;
*fd = (fl_intptr_t)(d); *fd = (fl_uchar)(d);
w->parent()->redraw(); w->parent()->redraw();
} }
@ -285,12 +285,12 @@ void create_the_forms() {
// create the sample string // create the sample string
int n = 0; int n = 0;
strcpy(label, "Hello, world!\n"); strcpy(label, "Hello, world!\n");
int i = strlen(label); int i = (int)strlen(label);
ulong c; ulong c;
for (c = ' '+1; c < 127; c++) { for (c = ' '+1; c < 127; c++) {
if (!(c&0x1f)) label[i++]='\n'; if (!(c&0x1f)) label[i++] = '\n';
if (c=='@') label[i++]=c; if (c == '@') label[i++] = '@';
label[i++]=c; label[i++] = (char)c;
} }
label[i++] = '\n'; label[i++] = '\n';
for (c = 0xA1; c < 0x600; c += 9) { for (c = 0xA1; c < 0x600; c += 9) {