Replace definition of variable sum from int to unsigned long

 The maximum size of integer variable on 64bit machines is 2^31. Suppose the
 writer takes 5 nanosecond to increase the counter by one, the result wraps
 around in about 10 seconds.

Signed-off-by: Junchang Wang <junchangwang@gmail.com>
1 file changed