summaryrefslogtreecommitdiff
path: root/mysys/my_vle.c
diff options
context:
space:
mode:
authormonty@mysql.com/narttu.mysql.fi <>2006-11-30 03:40:42 +0200
committermonty@mysql.com/narttu.mysql.fi <>2006-11-30 03:40:42 +0200
commit3a35c30027ed27bf6d2f457168fab2e4ef9e198e (patch)
tree7cc1a3e7f00427d01d2117c9b3c41231a827afd3 /mysys/my_vle.c
parent717284b85cfdaeacb0e28177e13cf6fd24f36a3b (diff)
downloadmariadb-git-3a35c30027ed27bf6d2f457168fab2e4ef9e198e.tar.gz
Fixed compiler warnings (Mostly VC++):
- Removed not used variables - Changed some ulong parameters/variables to ulonglong (possible serious bug) - Added casts to get rid of safe assignment from longlong to long (and similar) - Added casts to function parameters - Fixed signed/unsigned compares - Added some constructores to structures - Removed some not portable constructs Better fix for bug Bug #21428 "skipped 9 bytes from file: socket (3)" on "mysqladmin shutdown" (Added new parameter to net_clear() to define when we want the communication buffer to be emptied)
Diffstat (limited to 'mysys/my_vle.c')
-rw-r--r--mysys/my_vle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mysys/my_vle.c b/mysys/my_vle.c
index 3ddc1e4c6e0..edcb287484f 100644
--- a/mysys/my_vle.c
+++ b/mysys/my_vle.c
@@ -52,7 +52,7 @@ my_vle_encode(byte* out, my_size_t max, ulong n)
do
{
- *ptr++= (n & 0x7F);
+ *ptr++= (byte) (n & 0x7F);
n>>= 7;
}
while (n > 0);