warning C4267: 'argument' : conversion from 'size_t' to 'const short', possible loss of data