[PATCH 3/4] branch-check: fix long->int truncation when profiling branches