Skip to content

Commit 2948991

Browse files
committed
bugfix for cumSumTypeConversion
1 parent 82bf7ba commit 2948991

File tree

1 file changed

+1
-1
lines changed
  • core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/math

1 file changed

+1
-1
lines changed

core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/math/cumsum.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ internal fun DataColumn<Long?>.cumSumImpl(skipNA: Boolean): DataColumn<Long?> {
292292
* T : Number(?) -> T(?)
293293
*/
294294
public val cumSumTypeConversion: CalculateReturnType = { type, _ ->
295-
when (val type = type.withNullability(false)) {
295+
when (type.withNullability(false)) {
296296
// type changes to Int, carrying nullability
297297
typeOf<Short>(), typeOf<Byte>() -> typeOf<Int>().withNullability(type.isMarkedNullable)
298298

0 commit comments

Comments
 (0)