aboutsummaryrefslogtreecommitdiff
path: root/src/check_type.cpp
diff options
context:
space:
mode:
authorLaytan Laats <laytanlaats@hotmail.com>2024-08-16 22:19:28 +0200
committerLaytan Laats <laytanlaats@hotmail.com>2024-08-16 22:54:53 +0200
commitf7d7d65bc0f7da6993e117e67e771c7e1741ea06 (patch)
tree4a7a3c8a911913488f8225abb4339c8b3b05a061 /src/check_type.cpp
parent970dc7a1f26cbb2badb13ce22bcc51c6055788ef (diff)
fix `open` bindings
`open` specifies the `mode` argument as vararg (presumably to make it optional). varargs actually have rules about casting, in this case the rule that any integer arg of size <= 4 has to be casted to `i32` before passing it. Not doing that implicit cast makes the permissions wrong or not apply at all.
Diffstat (limited to 'src/check_type.cpp')
0 files changed, 0 insertions, 0 deletions