commit | 7188eb066daa3975a2045076c2b1b18b22f5e08d | [log] [tgz] |
---|---|---|
author | Junchang Wang <junchangwang@gmail.com> | Tue May 09 13:08:30 2017 +0800 |
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | Tue May 09 07:45:53 2017 -0700 |
tree | a5bb588570988becc065776c66e557accfe830f7 | |
parent | c32fd997b29bdff68f38e3933f0fb3be35ac48a1 [diff] |
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>