mirror of
https://github.com/MariaDB/server.git
synced 2026-05-02 13:15:32 +02:00
MDEV-15091 : Windows, 64bit: reenable and fix warning C4267 (conversion from 'size_t' to 'type', possible loss of data)
Handle string length as size_t, consistently (almost always:)) Change function prototypes to accept size_t, where in the past ulong or uint were used. change local/member variables to size_t when appropriate. This fix excludes rocksdb, spider,spider, sphinx and connect for now.
This commit is contained in:
parent
f271100836
commit
6c279ad6a7
257 changed files with 1514 additions and 1543 deletions
|
|
@ -137,13 +137,13 @@ static void GCALC_DBUG_PRINT_PI(const Gcalc_heap::Info *pi)
|
|||
static void GCALC_DBUG_PRINT_SLICE(const char *header,
|
||||
const Gcalc_scan_iterator::point *slice)
|
||||
{
|
||||
int nbuf;
|
||||
size_t nbuf;
|
||||
char buf[1024];
|
||||
nbuf= strlen(header);
|
||||
strcpy(buf, header);
|
||||
for (; slice; slice= slice->get_next())
|
||||
{
|
||||
int lnbuf= nbuf;
|
||||
size_t lnbuf= nbuf;
|
||||
lnbuf+= sprintf(buf + lnbuf, "%d\t", slice->thread);
|
||||
lnbuf+= sprintf(buf + lnbuf, "%s\t", gcalc_ev_name(slice->event));
|
||||
|
||||
|
|
@ -170,7 +170,7 @@ static void GCALC_DBUG_PRINT_SLICE(const char *header,
|
|||
Gcalc_dyn_list::Gcalc_dyn_list(size_t blk_size, size_t sizeof_item):
|
||||
m_blk_size(blk_size - ALLOC_ROOT_MIN_BLOCK_SIZE),
|
||||
m_sizeof_item(ALIGN_SIZE(sizeof_item)),
|
||||
m_points_per_blk((m_blk_size - PH_DATA_OFFSET) / m_sizeof_item),
|
||||
m_points_per_blk((uint)((m_blk_size - PH_DATA_OFFSET) / m_sizeof_item)),
|
||||
m_blk_hook(&m_first_blk),
|
||||
m_free(NULL),
|
||||
m_keep(NULL)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue