physfs.c
changeset 163 fc2b8ee5b420
parent 160 b17e94892394
child 167 fd695ca50a2c
--- a/physfs.c	Wed Apr 03 07:38:10 2002 +0000
+++ b/physfs.c	Wed Apr 03 07:40:27 2002 +0000
@@ -21,7 +21,7 @@
 
 typedef struct __PHYSFS_ERRMSGTYPE__
 {
-    int tid;
+    PHYSFS_uint64 tid;
     int errorAvailable;
     char errorString[80];
     struct __PHYSFS_ERRMSGTYPE__ *next;
@@ -105,13 +105,12 @@
 static ErrMsg *findErrorForCurrentThread(void)
 {
     ErrMsg *i;
-    int tid;
+    PHYSFS_uint64 tid;
 
     __PHYSFS_platformGrabMutex(errorLock);
     if (errorMessages != NULL)
     {
-        /*!!! I think tid needs to be a 64-bit value??? */
-        tid = (int)__PHYSFS_platformGetThreadID();
+        tid = __PHYSFS_platformGetThreadID();
 
         for (i = errorMessages; i != NULL; i = i->next)
         {
@@ -144,8 +143,7 @@
             return;   /* uhh...? */
 
         memset((void *) err, '\0', sizeof (ErrMsg));
-        /*!!! I think tid needs to be a 64-bit value??? */
-        err->tid = (int)__PHYSFS_platformGetThreadID();
+        err->tid = __PHYSFS_platformGetThreadID();
 
         __PHYSFS_platformGrabMutex(errorLock);
         err->next = errorMessages;