Fix MSVC64-warning about truncation from size_t to int.

Change-Id: I592a6bf4396ff2fc587527fe4faf1093d9ea4f57
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>