summaryrefslogtreecommitdiff
path: root/innobase
diff options
context:
space:
mode:
Diffstat (limited to 'innobase')
-rw-r--r--innobase/include/ut0byte.ic4
-rw-r--r--innobase/include/ut0ut.ic2
2 files changed, 3 insertions, 3 deletions
diff --git a/innobase/include/ut0byte.ic b/innobase/include/ut0byte.ic
index e141de3aa3f..3d268325674 100644
--- a/innobase/include/ut0byte.ic
+++ b/innobase/include/ut0byte.ic
@@ -388,8 +388,8 @@ ut_bit_set_nth(
ut_ad(TRUE == 1);
if (val) {
- return((1 << n) | a);
+ return(((ulint) 1 << n) | a);
} else {
- return(~(1 << n) & a);
+ return(~((ulint) 1 << n) & a);
}
}
diff --git a/innobase/include/ut0ut.ic b/innobase/include/ut0ut.ic
index 9a0ef1c0d5b..4bbb4eac3c3 100644
--- a/innobase/include/ut0ut.ic
+++ b/innobase/include/ut0ut.ic
@@ -170,5 +170,5 @@ ut_2_exp(
/* out: 2 to power n */
ulint n) /* in: number */
{
- return(1 << n);
+ return((ulint) 1 << n);
}