summaryrefslogtreecommitdiff
path: root/rubysig.h
diff options
context:
space:
mode:
authorocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-10-21 10:23:03 +0000
committerocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-10-21 10:23:03 +0000
commit0e851c5288a26efe252792f77a931e0787c87cca (patch)
tree32b44fbbd22da991e37893d0d93f05c0af98be38 /rubysig.h
parentfe8b5f63c7bbc699a55361063455afc00cfe246d (diff)
* rubysig.h (CHECK_INTS): fixed typo. (I believe bit-or is improper)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'rubysig.h')
-rw-r--r--rubysig.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/rubysig.h b/rubysig.h
index 6b55e93..f716824 100644
--- a/rubysig.h
+++ b/rubysig.h
@@ -82,7 +82,7 @@ void rb_thread_schedule _((void));
#if defined(HAVE_SETITIMER) || defined(_THREAD_SAFE)
RUBY_EXTERN int rb_thread_pending;
# define CHECK_INTS do {\
- if (!(rb_prohibit_interrupt | rb_thread_critical)) {\
+ if (!(rb_prohibit_interrupt || rb_thread_critical)) {\
if (rb_thread_pending) rb_thread_schedule();\
if (rb_trap_pending) rb_trap_exec();\
}\
@@ -92,7 +92,7 @@ RUBY_EXTERN int rb_thread_pending;
RUBY_EXTERN int rb_thread_tick;
#define THREAD_TICK 500
#define CHECK_INTS do {\
- if (!(rb_prohibit_interrupt | rb_thread_critical)) {\
+ if (!(rb_prohibit_interrupt || rb_thread_critical)) {\
if (rb_thread_tick-- <= 0) {\
rb_thread_tick = THREAD_TICK;\
rb_thread_schedule();\