hercules-390 / hyperion

Hercules 390
Other
246 stars 69 forks source link

Non portable use of thread-id in hthreads.c #226

Open PeterCoghlan opened 7 years ago

PeterCoghlan commented 7 years ago

There is some slightly naughty code in hthreads.c which assumes that a thread-id and an int are the same thing, causing a compiler warning on platforms where this is not necessarily the case. The following seems to work around the issue:

line 1072: tid = (TID) -1; line 1125: || (equal_threads( tid, (TID) -1 ) && !equal_threads( ilk[i].tid, 0 ))