diff options
author | Vladislav Vaintroub <wlad@mariadb.com> | 2021-09-11 13:08:13 +0200 |
---|---|---|
committer | Vladislav Vaintroub <wlad@mariadb.com> | 2021-09-11 15:19:42 +0200 |
commit | 3504f70f7f2017a98b929f182006b72ea494e1c0 (patch) | |
tree | 385a9a757c13cc11280f49177adff2ee2eeaec0a /sql/sql_parse.cc | |
parent | 879e21b68c34d252507298a53debb2c007a38177 (diff) | |
download | mariadb-git-3504f70f7f2017a98b929f182006b72ea494e1c0.tar.gz |
Bison 3.7 - fix "conversion from 'ptrdiff_t' to 'ulong', possible loss of data"
Diffstat (limited to 'sql/sql_parse.cc')
-rw-r--r-- | sql/sql_parse.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc index f782c5c25e7..3e1f248b082 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -7226,10 +7226,10 @@ bool check_stack_overrun(THD *thd, long margin, #define MY_YACC_INIT 1000 // Start with big alloc #define MY_YACC_MAX 32000 // Because of 'short' -bool my_yyoverflow(short **yyss, YYSTYPE **yyvs, ulong *yystacksize) +bool my_yyoverflow(short **yyss, YYSTYPE **yyvs, size_t *yystacksize) { Yacc_state *state= & current_thd->m_parser_state->m_yacc; - ulong old_info=0; + size_t old_info=0; DBUG_ASSERT(state); if ((uint) *yystacksize >= MY_YACC_MAX) return 1; |