summaryrefslogtreecommitdiff
path: root/test/offscreen.cxx
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2021-08-31 17:49:31 +0200
committerAlbrecht Schlosser <albrechts.fltk@online.de>2021-08-31 17:49:31 +0200
commitef86d9acedc8d8a5005cdae45070cfc5f5789964 (patch)
tree286c703fcdac4dfc40196c2877d484a1475509f4 /test/offscreen.cxx
parente5310144b7b3bda62e3711420c53af73907ab2d4 (diff)
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
Diffstat (limited to 'test/offscreen.cxx')
-rw-r--r--test/offscreen.cxx4
1 files changed, 2 insertions, 2 deletions
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);