[PATCH 4.17 036/220] branch-check: fix long->int truncation when profiling branches