Skip to content

Commit a0455bf

Browse files
committed
Resolve name collision
1 parent 973d9dd commit a0455bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PrjBarlib/include/barline.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -519,10 +519,10 @@ MEXP namespace bc
519519
y2 = sqrtf(y2);
520520
t = acosf(t / (x2 * y2));
521521

522-
const float PI = acosf(-1.0f) / 2;
522+
const float BAR_PI = acosf(-1.0f) / 2;
523523
if (isnan(t))
524524
return 1.f;
525-
return abs(roundf(1000.f * (PI - t) / PI) / 1000.f);
525+
return abs(roundf(1000.f * (BAR_PI - t) / BAR_PI) / 1000.f);
526526
}
527527

528528
bc::barvector getEnclusivePoints()

0 commit comments

Comments
 (0)