Skip to content

Commit

Permalink
Merge pull request #785 from MasterDuke17/chown_args_should_be_unsigned
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterDuke17 committed Nov 14, 2022
2 parents 2e7924c + 37b976d commit 8a9f687
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/ops.markdown
Expand Up @@ -1521,7 +1521,7 @@ Change the permissions of `$path` to the posix style permissions of `$mode`.
Returns 0 on success, throws an exception on failure.

## chown
* `chown(str $path, int $uid, int $gid --> int)`
* `chown(str $path, uint $uid, uint $gid --> int)`

Change the owner or group of the path.
Throws an exception on failure.
Expand Down
2 changes: 1 addition & 1 deletion src/vm/js/Operations.nqp
Expand Up @@ -576,7 +576,7 @@ class QAST::OperationsJS {
add_simple_op('mkdir', $T_VOID, [$T_STR, $T_INT], :side_effects);

add_simple_op('chmod', $T_VOID, [$T_STR, $T_INT], :side_effects);
add_simple_op('chown', $T_VOID, [$T_STR, $T_INT, $T_INT], :side_effects);
add_simple_op('chown', $T_VOID, [$T_STR, $T_UINT, $T_UINT], :side_effects);

add_simple_op('getenvhash', $T_OBJ, [], :side_effects);
add_simple_op('getsignals', $T_OBJ, [], :side_effects, :takes_hll);
Expand Down
2 changes: 1 addition & 1 deletion src/vm/jvm/QAST/Compiler.nqp
Expand Up @@ -2270,7 +2270,7 @@ QAST::OperationsJAST.map_classlib_core_op('filenofh', $TYPE_OPS, 'filenofh', [$R
QAST::OperationsJAST.map_classlib_core_op('setbuffersizefh', $TYPE_OPS, 'setbuffersizefh', [$RT_OBJ, $RT_INT], $RT_OBJ, :tc);

QAST::OperationsJAST.map_classlib_core_op('chmod', $TYPE_OPS, 'chmod', [$RT_STR, $RT_INT], $RT_INT, :tc);
QAST::OperationsJAST.map_classlib_core_op('chown', $TYPE_OPS, 'chown', [$RT_STR, $RT_INT, $RT_INT], $RT_INT, :tc);
QAST::OperationsJAST.map_classlib_core_op('chown', $TYPE_OPS, 'chown', [$RT_STR, $RT_UINT, $RT_UINT], $RT_INT, :tc);
QAST::OperationsJAST.map_classlib_core_op('unlink', $TYPE_OPS, 'unlink', [$RT_STR], $RT_INT, :tc);
QAST::OperationsJAST.map_classlib_core_op('rmdir', $TYPE_OPS, 'rmdir', [$RT_STR], $RT_INT, :tc);
QAST::OperationsJAST.map_classlib_core_op('cwd', $TYPE_OPS, 'cwd', [], $RT_STR);
Expand Down
2 changes: 1 addition & 1 deletion tools/templates/MOAR_REVISION
@@ -1 +1 @@
2022.07-18-gd22223381
2022.07-20-g757524899

0 comments on commit 8a9f687

Please sign in to comment.