Resolve some warning and modify uint32_t to long
Merge pull request #49 from samuele3hu/script

Resolve some warning and modify uint32_t to long