From 9fad60140167661bfa1f442db3b81ba9e10d37e9 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Sat, 13 Feb 2021 21:12:52 +0100 Subject: Remove compilation warnings issued by Visual Studio 2019. --- src/drivers/PostScript/Fl_PostScript.cxx | 2 +- src/drivers/PostScript/Fl_PostScript_image.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/drivers/PostScript') diff --git a/src/drivers/PostScript/Fl_PostScript.cxx b/src/drivers/PostScript/Fl_PostScript.cxx index 15b66563a..a2d17ff3e 100644 --- a/src/drivers/PostScript/Fl_PostScript.cxx +++ b/src/drivers/PostScript/Fl_PostScript.cxx @@ -2122,7 +2122,7 @@ Fl_EPS_File_Surface::Fl_EPS_File_Surface(int width, int height, FILE *eps, Fl_Co ps->close_cmd_ = closef; if (ps->output) { float s = Fl::screen_scale(0); - ps->start_eps(width*s, height*s); + ps->start_eps(int(width*s), int(height*s)); #if USE_PANGO cairo_save(ps->cr()); ps->left_margin = ps->top_margin = 0; diff --git a/src/drivers/PostScript/Fl_PostScript_image.cxx b/src/drivers/PostScript/Fl_PostScript_image.cxx index 2aaa29a20..13976b20e 100644 --- a/src/drivers/PostScript/Fl_PostScript_image.cxx +++ b/src/drivers/PostScript/Fl_PostScript_image.cxx @@ -116,7 +116,7 @@ void Fl_PostScript_Graphics_Driver::write85(void *data, const uchar *p, int len) const uchar *last = p + len; while (p < last) { int c = 4 - big->l4; - if (last-p < c) c = last-p; + if (last-p < c) c = int(last-p); memcpy(big->bytes4 + big->l4, p, c); p += c; big->l4 += c; -- cgit v1.2.3