diff options
author | David Robillard <d@drobilla.net> | 2025-02-10 12:57:49 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2025-02-10 12:57:49 -0500 |
commit | 903c00d05186502abebc4eaca83896548eaa4d02 (patch) | |
tree | ad7f8eac035ce63c3795618271bc00387f3ecc28 /src/Canvas.cpp | |
parent | 6e39acc51a03645e4751c79b545994e353d1a04e (diff) | |
download | patchage-903c00d05186502abebc4eaca83896548eaa4d02.tar.gz patchage-903c00d05186502abebc4eaca83896548eaa4d02.tar.bz2 patchage-903c00d05186502abebc4eaca83896548eaa4d02.zip |
Fully parenthesize expressions
Diffstat (limited to 'src/Canvas.cpp')
-rw-r--r-- | src/Canvas.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Canvas.cpp b/src/Canvas.cpp index 80b5993..ae8c51d 100644 --- a/src/Canvas.cpp +++ b/src/Canvas.cpp @@ -146,8 +146,8 @@ Canvas::create_port(Configuration& conf, Coord loc; if (!conf.get_module_location(client_name, module_type, loc)) { // No position saved, come up with a pseudo-random one - loc.x = static_cast<double>(20 + _rng() % 640); - loc.y = static_cast<double>(20 + _rng() % 480); + loc.x = static_cast<double>(20 + (_rng() % 640)); + loc.y = static_cast<double>(20 + (_rng() % 480)); conf.set_module_location(client_name, module_type, loc); } |