[kit] Fix the build fallout of the previous commit
Oops.
This commit is contained in:
parent
aa7b1ffe9d
commit
a7a1cc244b
1 changed files with 2 additions and 2 deletions
|
@ -34,7 +34,7 @@ public struct Parameters {
|
||||||
|
|
||||||
// Simulation parameters
|
// Simulation parameters
|
||||||
var size = Size(width: 0, height: 0)
|
var size = Size(width: 0, height: 0)
|
||||||
var numberOfBalls: Short = 0
|
var numberOfBalls: UInt16 = 0
|
||||||
|
|
||||||
let unused1: UInt16 = 0xAB
|
let unused1: UInt16 = 0xAB
|
||||||
let unused2: UInt32 = 0xCDEF
|
let unused2: UInt32 = 0xCDEF
|
||||||
|
@ -187,7 +187,7 @@ public class Field {
|
||||||
}
|
}
|
||||||
|
|
||||||
if let parametersBuffer = parametersBuffer {
|
if let parametersBuffer = parametersBuffer {
|
||||||
parameters.numberOfBalls = Short(balls.count)
|
parameters.numberOfBalls = UInt16(balls.count)
|
||||||
self.parameters.write(to: parametersBuffer)
|
self.parameters.write(to: parametersBuffer)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue