Skip to content

Commit e2f072e

Browse files
committed
Workaround for GCC issue on raspbian
1 parent b7e7d31 commit e2f072e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

subprojects/robotpy-wpimath/gen/MathUtil.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,19 @@ functions:
88
FloorDiv:
99
template_impls:
1010
- [int64_t, int64_t]
11+
# work around GCC 10 issue on raspbian
12+
cpp_code: |
13+
[](int64_t x, int64_t y) -> int64_t {
14+
return frc::FloorDiv(x, y);
15+
}
1116
FloorMod:
1217
template_impls:
1318
- [int64_t, int64_t]
19+
# work around GCC 10 issue on raspbian
20+
cpp_code: |
21+
[](int64_t x, int64_t y) -> int64_t {
22+
return frc::FloorMod(x, y);
23+
}
1424
ApplyDeadband:
1525
param_override:
1626
maxMagnitude:

0 commit comments

Comments
 (0)