diff options
author | unknown <monty@hundin.mysql.fi> | 2001-06-03 16:45:49 +0300 |
---|---|---|
committer | unknown <monty@hundin.mysql.fi> | 2001-06-03 16:45:49 +0300 |
commit | 5ec76be436655eefc2a6403b21606fad914ac814 (patch) | |
tree | 922de2537c98e10f74062077d66ad1800d04522c /mysys | |
parent | 45c6bb8aa5ffd61dfe352df1921152d1d6b8f95b (diff) | |
download | mariadb-git-5ec76be436655eefc2a6403b21606fad914ac814.tar.gz |
Declare stpcpy() to fix portability problem on AIX with gcc 2.95.3
Fixed problem with command line arguments on 64 bit machines when
we use ~0 to indicate 'no limit'
include/m_string.h:
Declare stpcpy() to fix portability problem on AIX with gcc 2.95.3
mysys/getvar.c:
Fixed problem on 64 bit machines when we use ~0 to indicate 'no limit'.
sql-bench/Comments/postgres.benchmark:
U
Diffstat (limited to 'mysys')
-rw-r--r-- | mysys/getvar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mysys/getvar.c b/mysys/getvar.c index e0f60b207b7..90ab599244d 100644 --- a/mysys/getvar.c +++ b/mysys/getvar.c @@ -101,7 +101,7 @@ my_bool set_changeable_var(my_string str,CHANGEABLE_VAR *vars) } if (num < (longlong) found->min_value) num=(longlong) found->min_value; - else if (num > (longlong) (ulong) found->max_value) + else if (num > 0 && (ulonglong) num > (ulonglong) (ulong) found->max_value) num=(longlong) (ulong) found->max_value; num=((num- (longlong) found->sub_size) / (ulonglong) found->block_size); (*found->varptr)= (long) (num*(ulonglong) found->block_size); |