diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2021-08-31 00:26:56 +0200 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2021-08-31 00:26:56 +0200 |
| commit | c91713fd889f4744924f41f8c13b87cec99ef645 (patch) | |
| tree | 8910bb06689b5871562b12d3ab720b87ad39b1b5 | |
| parent | c8c1f51db7bd89291d2f7552e82e3724fcdaec8b (diff) | |
Fix MSVC warnings in test/fonts.cxx (issue #109)
| -rw-r--r-- | test/fonts.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/fonts.cxx b/test/fonts.cxx index dbc8a7a7e..16fec4460 100644 --- a/test/fonts.cxx +++ b/test/fonts.cxx @@ -152,7 +152,7 @@ void add_point_cb(Fl_Widget *w, void *d) { unsigned char *fd = vec[current_char]; while (*fd) fd++; - *fd = (fl_intptr_t)(d); + *fd = (fl_uchar)(d); w->parent()->redraw(); } @@ -285,12 +285,12 @@ void create_the_forms() { // create the sample string int n = 0; strcpy(label, "Hello, world!\n"); - int i = strlen(label); + int i = (int)strlen(label); ulong c; for (c = ' '+1; c < 127; c++) { - if (!(c&0x1f)) label[i++]='\n'; - if (c=='@') label[i++]=c; - label[i++]=c; + if (!(c&0x1f)) label[i++] = '\n'; + if (c == '@') label[i++] = '@'; + label[i++] = (char)c; } label[i++] = '\n'; for (c = 0xA1; c < 0x600; c += 9) { |
