Skip to content

Commit

Permalink
5282: fix int overflow in the warning
Browse files Browse the repository at this point in the history
  • Loading branch information
hhbyyh committed Jan 17, 2015
1 parent f38ef65 commit 7afac23
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ class RowMatrix(
throw new IllegalArgumentException(s"Argument with more than 65535 cols: $cols")
}
if (cols > 10000) {
val mem = cols * cols * 8
val mem = (math.pow(cols, 2) * 8).formatted("%,.0f")
logWarning(s"$cols columns will require at least $mem bytes of memory!")
}
}
Expand Down

0 comments on commit 7afac23

Please sign in to comment.