tracemalloc: only use unsigned types to compute hash

Commit to simplify the backport to python 2.7 and to make the code more
consistent.
1 file changed