summaryrefslogtreecommitdiff
path: root/runtime/ops/signal.rs
diff options
context:
space:
mode:
authorcrowlKats <13135287+crowlKats@users.noreply.github.com>2021-03-19 01:55:31 +0100
committerGitHub <noreply@github.com>2021-03-18 20:55:31 -0400
commit197305908b721340041be03e5a11fe60a1711fb2 (patch)
tree732f63ef3d14c174e0eb5e29414ab57ccc232dbd /runtime/ops/signal.rs
parent277e19f4d26b66bbba99b0a3d6539b524dc88830 (diff)
normalize rids (#9832)
Diffstat (limited to 'runtime/ops/signal.rs')
-rw-r--r--runtime/ops/signal.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/ops/signal.rs b/runtime/ops/signal.rs
index 86eb91c1b..a083549a1 100644
--- a/runtime/ops/signal.rs
+++ b/runtime/ops/signal.rs
@@ -63,7 +63,7 @@ pub struct BindSignalArgs {
#[cfg(unix)]
#[derive(Deserialize)]
pub struct SignalArgs {
- rid: i32,
+ rid: u32,
}
#[cfg(unix)]
@@ -93,7 +93,7 @@ async fn op_signal_poll(
_zero_copy: BufVec,
) -> Result<Value, AnyError> {
super::check_unstable2(&state, "Deno.signal");
- let rid = args.rid as u32;
+ let rid = args.rid;
let resource = state
.borrow_mut()
@@ -116,7 +116,7 @@ pub fn op_signal_unbind(
_zero_copy: &mut [ZeroCopyBuf],
) -> Result<Value, AnyError> {
super::check_unstable(state, "Deno.signal");
- let rid = args.rid as u32;
+ let rid = args.rid;
state
.resource_table
.close(rid)