Skip to content

Commit 3bbc549

Browse files
ShadowMitialeios
andauthored
Fix warning on MSVC for barnsley C++ code (#943)
Co-authored-by: James Schloss <[email protected]>
1 parent 67a5cf0 commit 3bbc549

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

contents/barnsley/code/cpp/barnsley.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ auto select_array(
7575
rnd -= probabilities[i];
7676
}
7777
assert(!static_cast<bool>("check if probabilities adding up to 1"));
78+
return hutchinson_op[0];
7879
}
7980

8081
// This is a general function to simulate a chaos game

0 commit comments

Comments
 (0)