diff options
author | hobbs <hobbs> | 2004-07-02 23:36:02 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2004-07-02 23:36:02 (GMT) |
commit | fe6e887dda8e5c1821a94aaac732a37316a25d49 (patch) | |
tree | bd2f6a11ab0e1e365becf9fe24110ae442aaec84 /generic | |
parent | 236570f0308763b7305fcff43431ac39f7e2d835 (diff) | |
download | tcl-fe6e887dda8e5c1821a94aaac732a37316a25d49.zip tcl-fe6e887dda8e5c1821a94aaac732a37316a25d49.tar.gz tcl-fe6e887dda8e5c1821a94aaac732a37316a25d49.tar.bz2 |
* generic/regcomp.c (stid): correct minor pointer size error
Diffstat (limited to 'generic')
-rw-r--r-- | generic/regcomp.c | 4 |
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; } |