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
parent 1d78506d
...@@ -44,13 +44,13 @@ ut_get_high32( ...@@ -44,13 +44,13 @@ ut_get_high32(
/* out: a >> 32 */ /* out: a >> 32 */
ulint a) /* in: ulint */ ulint a) /* in: ulint */
{ {
#if SIZEOF_LONG == 4 ib_longlong i;
UT_NOT_USED(a);
return 0; i = (ib_longlong)a;
#else
return(a >> 32); i = i >> 32;
#endif
return((ulint)i);
} }
/************************************************************ /************************************************************
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment