mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 20:07:13 +02:00
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
This commit is contained in:
parent
c392de41b2
commit
47f15599e8
1 changed files with 6 additions and 6 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
/************************************************************
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue