Fix 'possible loss of data' warning

Qt doesn't like to use size_t anywhere.