diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2023-09-01 11:21:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-01 11:21:23 +0200 |
commit | 3436f65e20bd612fdfb8bdee5c20f52fbd11b21a (patch) | |
tree | a74ca7c99eed867c0560cd6122436d1462483deb /cli/tsc/99_main_compiler.js | |
parent | cd0fcc2257198e33c319555091b7081dc8387c8d (diff) |
fix(ext/node): remove unnecessary and incorrect type priority_t (#20276)
`getpriority` and `setpriority` on musl libc accepts `int` / `c_int` /
`i32` as the first argument, not `u32`.
Since the `PRIO_PROCESS` constant is imported from the same crate (libc)
as the `getpriority` and `setpriority` functions, this type cast seems
to be completely unnecessary here.
It was introduced in aa8078b6888ee4d55ef348e336e076676dffc25f by
@crowlKats.
Relevant sources:
-
https://github.com/rust-lang/libc/blob/835661543db1ec42a6d9a809d69c3c5b5b978b81/src/unix/linux_like/linux/musl/mod.rs#L739-L740
- https://git.musl-libc.org/cgit/musl/tree/src/misc/setpriority.c
- https://git.musl-libc.org/cgit/musl/tree/src/misc/getpriority.c
Co-authored-by: Aapo Alasuutari <aapo.alasuutari@gmail.com>
Diffstat (limited to 'cli/tsc/99_main_compiler.js')
0 files changed, 0 insertions, 0 deletions