From 9870864a88445354a0147288557f5c9abef6e36a Mon Sep 17 00:00:00 2001 From: Georgi Kodinov Date: Mon, 9 Mar 2009 12:22:52 +0200 Subject: [PATCH] fixed a win32 compile warning --- sql/protocol.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 *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;