aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Hunter <evan@ozhiker.com>2016-02-21 21:08:05 +0000
committerSteve Bennett <steveb@workware.net.au>2016-03-27 13:55:00 +1000
commitd8a163f004e173441f05a5e6718fcc9728c82f81 (patch)
treef88bf93ccc0b701492b191c99fdcae1ee1fa11a4
parentdfe94401f8ec9bbd5ea615e97a0bcb8df81c7ed1 (diff)
downloadjimtcl-d8a163f004e173441f05a5e6718fcc9728c82f81.zip
jimtcl-d8a163f004e173441f05a5e6718fcc9728c82f81.tar.gz
jimtcl-d8a163f004e173441f05a5e6718fcc9728c82f81.tar.bz2
Fix shift operator so result is the expected 64 bit value
-rw-r--r--jim.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/jim.c b/jim.c
index b6b6610..8a5a802 100644
--- a/jim.c
+++ b/jim.c
@@ -13876,10 +13876,10 @@ static int Jim_CatchCoreCommand(Jim_Interp *interp, int argc, Jim_Obj *const *ar
}
if (ignore) {
- ignore_mask |= (1 << option);
+ ignore_mask |= ((jim_wide)1 << option);
}
else {
- ignore_mask &= ~(1 << option);
+ ignore_mask &= (~((jim_wide)1 << option));
}
}