Fix spelling mistake.
Rename variable to make slightly more sense.
Fix MSVC warning about mismatched sizes.
Merge pull request #2 from ahmedcharles/patch-1

Fix MSVC warning about mismatched sizes.