Skip to content

Commit

Permalink
make sure numReactors is interpreted as an int
Browse files Browse the repository at this point in the history
  • Loading branch information
cmnrd committed Mar 11, 2024
1 parent 7f5dd9c commit 2eac3e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion C/Savina/src/micro/ThreadRing.lf
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ main reactor (numIterations:size_t=12, numPings:size_t=100000, numReactors:size_
loopOpener = new ThreadRingReactorLoopOpener()

/*[[[cog
cog.outl(f'workers = new[{numReactors - 1}] ThreadRingReactor();')
cog.outl(f'workers = new[{int(numReactors) - 1}] ThreadRingReactor();')
]]] */
workers = new[99] ThreadRingReactor();
/** [[[end]]] */
Expand Down

0 comments on commit 2eac3e5

Please sign in to comment.