We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 666774d commit 567382bCopy full SHA for 567382b
src/path.c
@@ -211,7 +211,7 @@ void twin_path_arc(twin_path_t *path,
211
sides = 1024;
212
213
/* Calculate the nearest power of 2 that is >= sides. */
214
- int32_t n = (sides > 1) ? (31 - twin_clz(sides - 1) + 1) : 2;
+ int32_t n = (sides > 1) ? (31 - twin_clz(sides) + 1) : 2;
215
216
twin_angle_t step = TWIN_ANGLE_360 >> n;
217
twin_angle_t inc = step;
0 commit comments