We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc513ad commit 3bcd20aCopy full SHA for 3bcd20a
YukimiScript.CodeGen/Bytecode.fs
@@ -90,7 +90,7 @@ let generateBytecode (Intermediate scenes) (target: FileStream) =
90
fourCC |> ASCII.GetBytes |> writeBytes target
91
92
let scenes = List.map generateScene scenes
93
- while cstrBlock.Length % 4L <> 0 do
+ while (int cstrBlock.Length) % 4 <> 0 do
94
cstrBlock.WriteByte 0uy
95
96
writeFourCC "RIFF" target
@@ -109,7 +109,7 @@ let generateBytecode (Intermediate scenes) (target: FileStream) =
109
writeFourCC fourCC target
110
block.Flush ()
111
block.Length |> uint32 |> getBytesLE |> writeBytes target
112
- block.Position <- 0
+ block.Position <- 0L
113
block.CopyTo(target)
114
115
writeRiffBlock "CSTR" cstrBlock
0 commit comments