Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-04-29 00:10:54 +0400
committerChristopher Faylor <me@cgf.cx>2003-04-29 00:10:54 +0400
commit6ef342e4603b75fa789004db934c0daea53ae132 (patch)
tree371478341ba7b6b583221f2336ad2c5299082386 /winsup/cygwin/profil.h
parenteae4b2b0bc87e9de4c56fda110a9d2813cf0ddce (diff)
* 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.h2
1 files changed, 1 insertions, 1 deletions
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))