diff options
Diffstat (limited to 'src/ganv_bench.cpp')
-rw-r--r-- | src/ganv_bench.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ganv_bench.cpp b/src/ganv_bench.cpp index 11fc44e..5f723b3 100644 --- a/src/ganv_bench.cpp +++ b/src/ganv_bench.cpp @@ -39,8 +39,8 @@ make_module(Canvas* canvas) snprintf(name, 8, "mod%d", rand() % 10000); Module* m(new Module(*canvas, name, - rand() % (int)canvas->get_width(), - rand() % (int)canvas->get_height(), + rand() % static_cast<int>(canvas->get_width()), + rand() % static_cast<int>(canvas->get_height()), true)); int n_ins = rand() % MAX_NUM_PORTS; @@ -70,8 +70,8 @@ make_circle(Canvas* canvas) snprintf(name, 8, "%d", rand() % 10000); Circle* e(new Circle(*canvas, name, - rand() % (int)canvas->get_width(), - rand() % (int)canvas->get_height())); + rand() % static_cast<int>(canvas->get_width()), + rand() % static_cast<int>(canvas->get_height()))); ins.push_back(e); outs.push_back(e); |