mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-02 07:54:19 +01:00
Our compat matrix mentions a couple of opcodes: ToInt, ToBlob, etc. Those opcodes do not exist. Instead, there is a single Cast opcode, that takes the affinity as a parameter. Currently we just call a function when we need to cast. This PR fixes the compat file, implements the cast opcode, and in at least one instance, when explicitly using the CAST keyword, uses that opcode instead of a function in the generated bytecode. Reviewed-by: Preston Thorpe (@PThorpe92) Reviewed-by: Preston Thorpe (@PThorpe92) Closes #2352