Skip to content

Commit eb7d7a3

Browse files
committed
Removed unneeded casting
1 parent c183978 commit eb7d7a3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/powerup/cpu.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export class PowerUpStateResourceCPU extends PowerUpStateResource {
3939
return Math.floor((us / Number(sampled.getValue())) * BNPrecision)
4040
}
4141
us_to_weight(sample: UInt128, us: Int64Type): Int64 {
42-
return Int64.from(us).multiplying(BNPrecision).dividing(Int64.from(sample), 'floor')
42+
return Int64.from(us).multiplying(BNPrecision).dividing(sample, 'floor')
4343
}
4444

4545
// Default frac generation by smallest unit type

0 commit comments

Comments
 (0)