Fix for integer overflow corner case

Signed-off-by: Albert Chu <chu11@llnl.gov>