commit | 6b80da42c02bc731ab38b6a37da5366abe26717f | [log] [tgz] |
---|---|---|
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | Fri Nov 21 14:19:26 2014 -0800 |
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | Sat Jan 10 19:07:58 2015 -0800 |
tree | 9f0e6e658614c65a2a2df4bc2f3ae7508a6e6fce | |
parent | 3b009c0ebe02a06d2d5bd667da0eb9cefa79321d [diff] |
rcutorture: Use unsigned for Reader Batch computations The counter returned by the various ->completed functions is subject to overflow, which means that subtracting two such counters might result in overflow, which invokes undefined behavior in the C standard. This commit therefore changes these functions and variables to unsigned to avoid this undefined behavior. Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>