summaryrefslogtreecommitdiffstats
path: root/generic/regcomp.c
diff options
context:
space:
mode:
authorhobbs <hobbs>2004-07-02 23:35:44 (GMT)
committerhobbs <hobbs>2004-07-02 23:35:44 (GMT)
commit9b5d222f743985134ef42b6441545e60e0d64ef2 (patch)
tree833d2703747a576dfe730255708918c2fc417cbe /generic/regcomp.c
parent2ab4506f34cae724a01ece9dc1c650e5a9b674e9 (diff)
downloadtcl-9b5d222f743985134ef42b6441545e60e0d64ef2.zip
tcl-9b5d222f743985134ef42b6441545e60e0d64ef2.tar.gz
tcl-9b5d222f743985134ef42b6441545e60e0d64ef2.tar.bz2
* generic/regcomp.c (stid): correct minor pointer size error
Diffstat (limited to 'generic/regcomp.c')
-rw-r--r--generic/regcomp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/regcomp.c b/generic/regcomp.c
index 2a7fd6e..29be00f 100644
--- a/generic/regcomp.c
+++ b/generic/regcomp.c
@@ -2163,12 +2163,12 @@ char *buf;
size_t bufsize;
{
/* big enough for hex int or decimal t->retry? */
- if (bufsize < sizeof(int)*2 + 3 || bufsize < sizeof(t->retry)*3 + 1)
+ if (bufsize < sizeof(void*)*2 + 3 || bufsize < sizeof(t->retry)*3 + 1)
return "unable";
if (t->retry != 0)
sprintf(buf, "%d", t->retry);
else
- sprintf(buf, "0x%x", (int)t); /* may lose bits, that's okay */
+ sprintf(buf, "%p", t);
return buf;
}