Skip to content

Commit

Permalink
Fix build issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdunkerley committed Jan 24, 2025
1 parent 6b1e54c commit f7bb688
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ public static Storage<Long> runNoNulls(ColumnLongStorage arg1, ColumnLongStorage
protected long doLong(
long a, long b, long ix, MapOperationProblemAggregator problemAggregator) {
if (b == 0) {
problemAggregator.reportDivisionByZero(ix);
// ToDo: ProblemAggregator should accept a long instead of an int.
problemAggregator.reportDivisionByZero((int)ix);
return 0;
} else {
return a / b;
Expand All @@ -143,7 +144,8 @@ public static Storage<Long> runBoxingNulls(ColumnLongStorage arg1, ColumnLongSto
protected Long doLong(
long a, long b, long ix, MapOperationProblemAggregator problemAggregator) {
if (b == 0) {
problemAggregator.reportDivisionByZero(ix);
// ToDo: ProblemAggregator should accept a long instead of an int.
problemAggregator.reportDivisionByZero((int)ix);
return null;
} else {
return a / b;
Expand All @@ -167,7 +169,8 @@ protected long doLong(
MapOperationProblemAggregator problemAggregator,
NullityReporter nullityReporter) {
if (b == 0) {
problemAggregator.reportDivisionByZero(ix);
// ToDo: ProblemAggregator should accept a long instead of an int.
problemAggregator.reportDivisionByZero((int)ix);
nullityReporter.willBeNull();
return 0;
} else {
Expand Down

0 comments on commit f7bb688

Please sign in to comment.