KSCrash icon indicating copy to clipboard operation
KSCrash copied to clipboard

confuse of uintptr_t and unsignedLongLong?

Open SecondDog opened this issue 6 years ago • 1 comments

KSCrashMonitor_NSException.m callstack[i] = (uintptr_t)[addresses[i] unsignedLongLongValue]; typedef unsigned long uintptr_t; i think it should be (uintptr_t)[address[i] unsignedlong]

SecondDog avatar Dec 17 '18 01:12 SecondDog

In C99, it is defined as "an unsigned integer type with the property that any valid pointer to void can be converted to this type, then converted back to pointer to void, and the result will compare equal to the original pointer".

Take this to mean what it says. It doesn't say anything about size.

Answer from Stack Overflow

ZhiyuWong avatar Dec 23 '18 11:12 ZhiyuWong