mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
remove ULL() and LL(), because they're totally unnecessary
and sometimes harmful (used with expressions)
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/* Copyright (c) 2002, 2012, Oracle and/or its affiliates.
|
||||
Copyright (c) 2008, 2012, Monty Program Ab
|
||||
Copyright (c) 2008, 2013, Monty Program Ab
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@ -9862,11 +9862,11 @@ static void test_bug3035()
|
||||
const uint32 uint32_max= 4294967295U;
|
||||
|
||||
/* it might not work okay everyplace */
|
||||
const longlong int64_max= LL(9223372036854775807);
|
||||
const longlong int64_max= 9223372036854775807LL;
|
||||
const longlong int64_min= -int64_max - 1;
|
||||
|
||||
const ulonglong uint64_min= 0U;
|
||||
const ulonglong uint64_max= ULL(18446744073709551615);
|
||||
const ulonglong uint64_max= 18446744073709551615ULL;
|
||||
|
||||
const char *stmt_text;
|
||||
|
||||
@ -12533,7 +12533,7 @@ static void test_truncation()
|
||||
|
||||
/* double -> longlong, negative fp number to signed integer: no loss */
|
||||
DIE_UNLESS(my_bind++ < bind_array + bind_count);
|
||||
DIE_UNLESS(! *my_bind->error && * (longlong*) my_bind->buffer == LL(-12345678910));
|
||||
DIE_UNLESS(! *my_bind->error && * (longlong*) my_bind->buffer == -12345678910LL);
|
||||
|
||||
/* big numeric string -> number */
|
||||
DIE_UNLESS(my_bind++ < bind_array + bind_count);
|
||||
@ -14535,7 +14535,7 @@ static void test_bug12925()
|
||||
{
|
||||
myheader("test_bug12925");
|
||||
if (opt_getopt_ll_test)
|
||||
DIE_UNLESS(opt_getopt_ll_test == LL(25600*1024*1024));
|
||||
DIE_UNLESS(opt_getopt_ll_test == 25600LL*1024*1024);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user