summaryrefslogtreecommitdiff
path: root/sql/protocol.cc
diff options
context:
space:
mode:
authorGeorgi Kodinov <joro@sun.com>2009-03-09 12:22:52 +0200
committerGeorgi Kodinov <joro@sun.com>2009-03-09 12:22:52 +0200
commit56ae3bd15536ab220568d43fccfa350dc521b2d9 (patch)
treee84b414c01ea2cb0d421d040b4130f20ff94a865 /sql/protocol.cc
parent1f1cdf9d5085d28e82578f1bd7e8ecfdd5251b1b (diff)
downloadmariadb-git-56ae3bd15536ab220568d43fccfa350dc521b2d9.tar.gz
fixed a win32 compile warning
Diffstat (limited to 'sql/protocol.cc')
-rw-r--r--sql/protocol.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/protocol.cc b/sql/protocol.cc
index 2309bac88a9..a1e349bf30b 100644
--- a/sql/protocol.cc
+++ b/sql/protocol.cc
@@ -641,7 +641,8 @@ bool Protocol::send_fields(List<Item> *list, uint flags)
field.length / item->collation.collation->mbminlen :
field.length / item->collation.collation->mbmaxlen;
max_length*= thd_charset->mbmaxlen;
- field_length= (max_length > UINT_MAX32) ? UINT_MAX32 : max_length;
+ field_length= (max_length > UINT_MAX32) ?
+ UINT_MAX32 : (unit32) max_length;
int4store(pos + 2, field_length);
}
pos[6]= field.type;