diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2003-08-06 13:53:01 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2003-08-06 13:53:01 +0000 |
commit | 08ef4a904f12d715b5130322e97716e61ee78459 (patch) | |
tree | 205a0ab9d57a29595a8ed73b2990aa4f3c114977 /ext/threads | |
parent | b1dc3ce8a8206d47add60f8495f5ec72cd3498f8 (diff) | |
download | perl-08ef4a904f12d715b5130322e97716e61ee78459.tar.gz |
Cast away gcc 3.3 type conversion pickiness.
p4raw-id: //depot/perl@20526
Diffstat (limited to 'ext/threads')
-rwxr-xr-x | ext/threads/threads.xs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/threads/threads.xs b/ext/threads/threads.xs index d9d2d27dd3..ba3e4883bc 100755 --- a/ext/threads/threads.xs +++ b/ext/threads/threads.xs @@ -71,7 +71,7 @@ I32 active_threads = 0; void Perl_ithread_set (pTHX_ ithread* thread) { - SV* thread_sv = newSViv((IV)thread); + SV* thread_sv = newSViv(PTR2IV(thread)); if(!hv_store(PL_modglobal, "threads::self", 12, thread_sv,0)) { croak("%s\n","Internal error, couldn't set TLS"); } @@ -82,7 +82,7 @@ ithread* Perl_ithread_get (pTHX) { if(!thread_sv) { croak("%s\n","Internal error, couldn't get TLS"); } - return (ithread*)SvIV(*thread_sv); + return INT2PTR(ithread*,SvIV(*thread_sv)); } |