diff options
author | Christopher Faylor <me@cgf.cx> | 2003-04-28 20:10:54 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2003-04-28 20:10:54 +0000 |
commit | 6ef342e4603b75fa789004db934c0daea53ae132 (patch) | |
tree | 371478341ba7b6b583221f2336ad2c5299082386 /winsup/cygwin/profil.h | |
parent | eae4b2b0bc87e9de4c56fda110a9d2813cf0ddce (diff) | |
download | newlib-6ef342e4603b75fa789004db934c0daea53ae132.zip newlib-6ef342e4603b75fa789004db934c0daea53ae132.tar.gz newlib-6ef342e4603b75fa789004db934c0daea53ae132.tar.bz2 |
* 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.
Diffstat (limited to 'winsup/cygwin/profil.h')
-rw-r--r-- | winsup/cygwin/profil.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/profil.h b/winsup/cygwin/profil.h index 582b2a7..7ec4dfa 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)) |