summaryrefslogtreecommitdiff
path: root/sql/sql_digest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_digest.cc')
-rw-r--r--sql/sql_digest.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_digest.cc b/sql/sql_digest.cc
index 65edcc122f1..54ed1c3f225 100644
--- a/sql/sql_digest.cc
+++ b/sql/sql_digest.cc
@@ -20,7 +20,7 @@
#include "mariadb.h"
#include "my_md5.h"
-#include "mysqld_error.h"
+#include "unireg.h"
#include "sql_string.h"
#include "sql_class.h"
@@ -149,7 +149,7 @@ inline void store_token_identifier(sql_digest_storage* digest_storage,
/* Write the string data */
if (id_length > 0)
memcpy((char *)(dest + 4), id_name, id_length);
- digest_storage->m_byte_count+= bytes_needed;
+ digest_storage->m_byte_count+= (uint)bytes_needed;
}
else
{