missing changes
[IRC.git] / Robust / src / Runtime / object.c
index 00ef12fea2dd481dd7d270288bd56265ae942040..4dbb7f0ba59ef5c97bb1bcf6cc4131b354f7564e 100644 (file)
@@ -16,6 +16,8 @@
 #ifndef MAC
 __thread struct lockvector lvector;
 __thread int mythreadid;
+#else
+
 #endif
 
 #ifdef D___Object______nativehashCode____
@@ -45,7 +47,7 @@ int CALL01(___Object______getType____, struct ___Object___ * ___this___) {
 void CALL01(___Object______MonitorEnter____, struct ___Object___ * ___this___) {
 #ifdef MAC
   struct lockvector *lptr=(struct lockvector *)pthread_getspecific(threadlocks);
-  int self=pthread_getspecific(macthreadid);
+  int self=(int)(long)pthread_getspecific(macthreadid);
 #else
   struct lockvector *lptr=&lvector;
   int self=mythreadid;
@@ -90,7 +92,7 @@ void CALL01(___Object______notifyAll____, struct ___Object___ * ___this___) {
 #ifdef D___Object______wait____
 void CALL01(___Object______wait____, struct ___Object___ * ___this___) {
 #ifdef MAC
-  int self=pthread_getspecific(macthreadid);
+  int self=(int)(long)pthread_getspecific(macthreadid);
 #else
   int self=mythreadid;
 #endif