diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2021-08-31 17:49:31 +0200 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2021-08-31 17:49:31 +0200 |
| commit | ef86d9acedc8d8a5005cdae45070cfc5f5789964 (patch) | |
| tree | 286c703fcdac4dfc40196c2877d484a1475509f4 /test/offscreen.cxx | |
| parent | e5310144b7b3bda62e3711420c53af73907ab2d4 (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.cxx | 4 |
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); |
