[PATCH 4.9 018/101] branch-check: fix long->int truncation when profiling branches