mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 19:37:16 +02:00
Fixed compiler warnings (for linux and win32 and win64)
Fixed a couple of usage of not initialized warnings (unlikely cases)
This commit is contained in:
parent
6946fa682f
commit
e5cc397f33
43 changed files with 122 additions and 61 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -170,5 +170,5 @@ ut_2_exp(
|
|||
/* out: 2 to power n */
|
||||
ulint n) /* in: number */
|
||||
{
|
||||
return(1 << n);
|
||||
return((ulint) 1 << n);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue