From ef86d9acedc8d8a5005cdae45070cfc5f5789964 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Tue, 31 Aug 2021 17:49:31 +0200 Subject: Fix more MSVC warnings in test apps (#109) - test/checkers.cxx - test/cube.cxx - test/offscreen.cxx - test/unittest_simple_terminal.cxx - test/utf8.cxx --- test/offscreen.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/offscreen.cxx') diff --git a/test/offscreen.cxx b/test/offscreen.cxx index b22218fc1..c43ffaad4 100644 --- a/test/offscreen.cxx +++ b/test/offscreen.cxx @@ -33,7 +33,7 @@ static const int win_size = 512; static const int first_useful_color = 56; static const int last_useful_color = 255; static const int num_iterations = 300; -static const double max_line_width = 9.0; +static const int max_line_width = 9; static const double delta_time = 0.1; /*****************************************************************************/ @@ -256,7 +256,7 @@ int main(int argc, char **argv) main_window->show(argc, argv); - srand(time(NULL)); // seed the random sequence generator + srand((unsigned int)time(NULL)); // seed the random sequence generator Fl::add_timeout(delta_time, oscr_anim); -- cgit v1.2.3