summaryrefslogtreecommitdiff
path: root/innobase/ut
diff options
context:
space:
mode:
authorunknown <heikki@hundin.mysql.fi>2005-01-28 21:49:21 +0200
committerunknown <heikki@hundin.mysql.fi>2005-01-28 21:49:21 +0200
commit7c7ff540951a1c68ec896ecf31fedbbcb1cb28d0 (patch)
tree8847fcbb268f11ff2ac79915817243b0f95585f5 /innobase/ut
parentfb14feefe518f08a72a32efde7d941e2f43d73c9 (diff)
downloadmariadb-git-7c7ff540951a1c68ec896ecf31fedbbcb1cb28d0.tar.gz
ut0ut.c:
Use a 32-bit right-shift implementation through a 64-bit integer that should work ok for both gcc and Visual C++; the code depended on defining SIZEOF_LONG, and that is not set when compiling ibbackup innobase/ut/ut0ut.c: Use a 32-bit right-shift implementation through a 64-bit integer that should work ok for both gcc and Visual C++; the code depended on defining SIZEOF_LONG, and that is not set when compiling ibbackup
Diffstat (limited to 'innobase/ut')
-rw-r--r--innobase/ut/ut0ut.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/innobase/ut/ut0ut.c b/innobase/ut/ut0ut.c
index 732380bcb1f..18722149a8f 100644
--- a/innobase/ut/ut0ut.c
+++ b/innobase/ut/ut0ut.c
@@ -44,13 +44,13 @@ ut_get_high32(
/* out: a >> 32 */
ulint a) /* in: ulint */
{
-#if SIZEOF_LONG == 4
- UT_NOT_USED(a);
+ ib_longlong i;
- return 0;
-#else
- return(a >> 32);
-#endif
+ i = (ib_longlong)a;
+
+ i = i >> 32;
+
+ return((ulint)i);
}
/************************************************************