warning C4267: conversion from 'size_t' to 'int' (MSVC 64-bit)

Change-Id: I2fa40ebe467a65b0d6023883a14c79ff4303bb2f