From 7b24dad470ad5cd3526ad081672adc25f1e1a672 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 20 Jun 2005 18:54:45 +0200 Subject: Fix handling of command-line on Windows, missed as part of earlier commit. (Bug #10840) client/mysql.cc: Add cast of unsigned value stored in signed char --- client/mysql.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'client') diff --git a/client/mysql.cc b/client/mysql.cc index b9b9b938da0..5454c76e720 100644 --- a/client/mysql.cc +++ b/client/mysql.cc @@ -989,7 +989,8 @@ static int read_lines(bool execute_commands) a nil, it still needs the space in the linebuffer for it. This is, naturally, undocumented. */ - } while (linebuffer[0] <= linebuffer[1] + 1); + } while ((unsigned char)linebuffer[0] <= + (unsigned char)linebuffer[1] + 1); line= buffer.c_ptr(); #endif /* __NETWARE__ */ #else -- cgit v1.2.1