From: Jarkko Hietaniemi <jhi@iki.fi>
Date: Wed, 6 Aug 2003 13:53:01 +0000 (+0000)
Subject: Cast away gcc 3.3 type conversion pickiness.
X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=08ef4a904f12d715b5130322e97716e61ee78459;p=p5sagit%2Fp5-mst-13.2.git

Cast away gcc 3.3 type conversion pickiness.

p4raw-id: //depot/perl@20526
---

diff --git a/ext/threads/threads.xs b/ext/threads/threads.xs
index d9d2d27..ba3e488 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));
 }