mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-22 02:53:09 +00:00
use unsigned long instead of uint32_t to match atomic ulong
This commit is contained in:
@@ -1269,7 +1269,7 @@ init_oid_header() {
|
||||
oid_header[3] = pid & 0xff;
|
||||
oid_header[4] = (pid >> 8) & 0xff;
|
||||
|
||||
uint32_t c = h ^ time(NULL) ^ (uintptr_t)&h;
|
||||
unsigned long c = h ^ time(NULL) ^ (uintptr_t)&h;
|
||||
if (c == 0) {
|
||||
c = 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user