summaryrefslogtreecommitdiff
path: root/os2
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2020-05-29 14:25:19 -0600
committerKarl Williamson <khw@cpan.org>2020-07-17 22:04:08 -0600
commitd223e1ea9ae864c0e563187f1e76240ef1acad87 (patch)
treef670961d58ff3c055cff40637ca9daacaf1b462e /os2
parent0654f0ab17405d0d55f0006348b4ed0084aa1fc8 (diff)
downloadperl-d223e1ea9ae864c0e563187f1e76240ef1acad87.tar.gz
handy.h: Create nBIT_MASK(n) macro
This encapsulates a common paradigm, making sure that it is done correctly for the platform's size.
Diffstat (limited to 'os2')
-rw-r--r--os2/os2ish.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/os2/os2ish.h b/os2/os2ish.h
index c82419eed7..e209fb5605 100644
--- a/os2/os2ish.h
+++ b/os2/os2ish.h
@@ -874,7 +874,7 @@ int os2_do_aspawn(pTHX_ SV *really, SV **vmark, SV **vsp);
* arguments to setlogmask.
*/
# define LOG_MASK(pri) (1 << (pri)) /* mask for one priority */
-# define LOG_UPTO(pri) ((1 << ((pri)+1)) - 1) /* all priorities through pri */
+# define LOG_UPTO(pri) nBIT_MASK((pri)+1) /* all priorities through pri */
/*
* Option flags for openlog.