From 6ef342e4603b75fa789004db934c0daea53ae132 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Mon, 28 Apr 2003 20:10:54 +0000 Subject: * profil.h (PROFADDR): Prevent overflow when text segments are larger than 256k. * profil.c (profthr_func): Raise thread priority for more accurate sampling. * path.cc (hash_path_name): Use ino_t as type. --- winsup/cygwin/profil.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'winsup/cygwin/profil.h') diff --git a/winsup/cygwin/profil.h b/winsup/cygwin/profil.h index 582b2a7cb..7ec4dfa09 100644 --- a/winsup/cygwin/profil.h +++ b/winsup/cygwin/profil.h @@ -24,7 +24,7 @@ details. */ /* convert an index into an address */ #define PROFADDR(idx, base, scale) \ - ((base) + ((((idx) << 16) / (scale)) << 1)) + ((base) + ((((unsigned long long)(idx) << 16) / (scale)) << 1)) /* convert a bin size into a scale */ #define PROFSCALE(range, bins) (((bins) << 16) / ((range) >> 1)) -- cgit v1.2.3