File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed
Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -71,15 +71,17 @@ let generateBytecode (Intermediate scenes) (target: FileStream) =
7171 |> writeBytes code
7272
7373 for arg in call.Arguments do
74- let typeid , data =
75- match arg with
76- | Integer i -> 0 u, getBytesLE i
77- | Real f -> 1 u, getBytesLE ( float32 f)
78- | String s -> 2 u, getString s |> getBytesLE
79- | Symbol s -> 3 u, getString s |> getBytesLE
80-
81- writeBytes code ( getBytesLE typeid)
82- writeBytes code data
74+ match arg with
75+ | Integer i ->
76+ writeBytes code <| getBytesLE 0
77+ writeBytes code <| getBytesLE i
78+ | Real f ->
79+ writeBytes code <| getBytesLE 1
80+ writeBytes code <| getBytesLE ( float32 f)
81+ | String s ->
82+ getString s |> int |> (+) 2 |> getBytesLE |> writeBytes code
83+ | Symbol s ->
84+ getString s |> int |> (*) (- 1 ) |> (-) 1 |> getBytesLE |> writeBytes code
8385
8486 code
8587
You can’t perform that action at this time.
0 commit comments