diff options
author | Vladislav Vaintroub <wlad@mariadb.com> | 2017-10-11 08:36:04 +0200 |
---|---|---|
committer | Vladislav Vaintroub <wlad@mariadb.com> | 2017-10-11 08:36:04 +0200 |
commit | daabb4d055a59247d5294ddee364f5c265bc37cd (patch) | |
tree | 35d9397ce9bd89ceab624f6e79a4ca33f46fb8e9 /storage/connect/xobject.cpp | |
parent | 4de344a8d7aba975912984623ae26b57b65e251b (diff) | |
download | mariadb-git-daabb4d055a59247d5294ddee364f5c265bc37cd.tar.gz |
Fix truncation warnings in connect
Diffstat (limited to 'storage/connect/xobject.cpp')
-rw-r--r-- | storage/connect/xobject.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/connect/xobject.cpp b/storage/connect/xobject.cpp index 85af3779701..c595ce5d6c4 100644 --- a/storage/connect/xobject.cpp +++ b/storage/connect/xobject.cpp @@ -204,7 +204,7 @@ STRING::STRING(PGLOBAL g, uint n, PCSZ str) *Strp = 0; Next = GetNext(); - Size = Next - Strp; + Size = (int)(Next - Strp); Trc = false; } else { // This should normally never happen @@ -239,7 +239,7 @@ char *STRING::Realloc(uint len) p = Strp; Next = GetNext(); - Size = Next - p; + Size = (int)(Next - p); return p; } // end of Realloc |