correcting potential overflow detected by static analysis for #64
Authored by: railroad-mike 2014-09-03
Parent: [r1325]
Child: [r1327]