Skip to content

Commit 3bcd20a

Browse files
committed
Bug fixed
1 parent fc513ad commit 3bcd20a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

YukimiScript.CodeGen/Bytecode.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ let generateBytecode (Intermediate scenes) (target: FileStream) =
9090
fourCC |> ASCII.GetBytes |> writeBytes target
9191

9292
let scenes = List.map generateScene scenes
93-
while cstrBlock.Length % 4L <> 0 do
93+
while (int cstrBlock.Length) % 4 <> 0 do
9494
cstrBlock.WriteByte 0uy
9595

9696
writeFourCC "RIFF" target
@@ -109,7 +109,7 @@ let generateBytecode (Intermediate scenes) (target: FileStream) =
109109
writeFourCC fourCC target
110110
block.Flush ()
111111
block.Length |> uint32 |> getBytesLE |> writeBytes target
112-
block.Position <- 0
112+
block.Position <- 0L
113113
block.CopyTo(target)
114114

115115
writeRiffBlock "CSTR" cstrBlock

0 commit comments

Comments
 (0)