[PATCH 3.16 114/366] branch-check: fix long->int truncation when profiling branches