diff options
author | Michael Widenius <monty@askmonty.org> | 2013-03-26 00:03:13 +0200 |
---|---|---|
committer | Michael Widenius <monty@askmonty.org> | 2013-03-26 00:03:13 +0200 |
commit | 068c61978e3a81836d52b8caf11e044290159ad1 (patch) | |
tree | 2cbca861ab2cebe3bd99379ca9668bb483ca0d2a /strings/my_vsnprintf.c | |
parent | 35bc8f9f4353b64da215e52ff6f1612a8ce66f43 (diff) | |
download | mariadb-git-068c61978e3a81836d52b8caf11e044290159ad1.tar.gz |
Temporary commit of 10.0-merge
Diffstat (limited to 'strings/my_vsnprintf.c')
-rw-r--r-- | strings/my_vsnprintf.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/strings/my_vsnprintf.c b/strings/my_vsnprintf.c index 2073d5a93d9..a05f60decf9 100644 --- a/strings/my_vsnprintf.c +++ b/strings/my_vsnprintf.c @@ -96,7 +96,7 @@ static const char *get_length_arg(const char *fmt, ARGS_INFO *args_arr, uint *arg_count, size_t *length, uint *flags) { fmt= get_length(fmt+1, length, flags); - *arg_count= max(*arg_count, (uint) *length); + *arg_count= MY_MAX(*arg_count, (uint) *length); (*length)--; DBUG_ASSERT(*fmt == '$' && *length < MAX_ARGS); args_arr[*length].arg_type= 'd'; @@ -243,7 +243,7 @@ static char *process_dbl_arg(char *to, char *end, size_t width, width= FLT_DIG; /* width not set, use default */ else if (width >= NOT_FIXED_DEC) width= NOT_FIXED_DEC - 1; /* max.precision for my_fcvt() */ - width= min(width, (size_t)(end-to) - 1); + width= MY_MIN(width, (size_t)(end-to) - 1); if (arg_type == 'f') to+= my_fcvt(par, (int)width , to, NULL); @@ -292,7 +292,7 @@ static char *process_int_arg(char *to, const char *end, size_t length, /* If %#d syntax was used, we have to pre-zero/pre-space the string */ if (store_start == buff) { - length= min(length, to_length); + length= MY_MIN(length, to_length); if (res_length < length) { size_t diff= (length- res_length); @@ -512,7 +512,7 @@ start: break; /* Copy data after the % format expression until next % */ - length= min(end - to , print_arr[i].end - print_arr[i].begin); + length= MY_MIN(end - to , print_arr[i].end - print_arr[i].begin); if (to + length < end) length++; to= strnmov(to, print_arr[i].begin, length); @@ -533,7 +533,7 @@ start: fmt= get_length(fmt, &arg_index, &unused_flags); DBUG_ASSERT(*fmt == '$'); fmt++; - arg_count= max(arg_count, arg_index); + arg_count= MY_MAX(arg_count, arg_index); goto start; } |