add appropriate casting to (double) to avoid integer overflow when scaling full sample buckets.
add appropriate casting to (double) to avoid integer overflow when scaling
full sample buckets.

HPCToolkit/hpctoolkit,zcth428/hpctoolkit,zcth428/hpctoolkit111,zcth428/hpctoolkit,zcth428/hpctoolkit111,zcth428/hpctoolkit111,zcth428/hpctoolkit,HPCToolkit/hpctoolkit,zcth428/hpctoolkit111,zcth428/hpctoolkit,HPCToolkit/hpctoolkit,HPCToolkit/hpctoolkit,zcth428/hpctoolkit111,HPCToolkit/hpctoolkit,zcth428/hpctoolkit,HPCToolkit/hpctoolkit