What is this doing, and doesn't it make assumptions about the size of an int?