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

Change-Id: Ife7d223f5e751e246c537561d3ce24395b4c9f3b