Prevent compiler warning when compiling for 64 bit
Better solution to fix 64 bit compiler warnings

Use the size_t data type where appropriate instead of casting.
Merge pull request #28 from ctourner/topic/compiler_warnings_64bit

Prevent compiler warning when compiling for 64 bit