1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

Fix some -Wsign-conversion

InnoDB was using int64_t instead of ha_rows (unsigned 64-bit).
This commit is contained in:
Marko Mäkelä
2018-04-29 17:39:48 +03:00
parent baa5a43d8c
commit b2c4740034
13 changed files with 65 additions and 69 deletions

View File

@ -84,7 +84,7 @@ public:
start= start_arg;
end= end_arg;
if (end != start)
TRASH_ALLOC(start, end - start);
TRASH_ALLOC(start, size_t(end - start));
reset();
}
@ -224,7 +224,7 @@ public:
{
DBUG_ASSERT(unused_end >= unused_start);
DBUG_ASSERT(end == unused_start);
TRASH_ALLOC(unused_start, unused_end - unused_start);
TRASH_ALLOC(unused_start, size_t(unused_end - unused_start));
end= unused_end;
}
/* Return pointer to start of the memory area that is occupied by the data */