mattt/CargoBay

Expected expression build error

jpstuehler opened this issue · 3 comments

Only when I compile for the device I get two expected expression errors in line 511 and 514 pointing to the beginning of struct:

require(signatureLength > offsetof(struct CBSignatureBlob, _certificate), _out);
require(signatureLength - offsetof(struct CBSignatureBlob, _certificate) >= certificateLength, _out);

Sometimes they magically disappear when I compile again (no clean before), but the errors are always thrown when compiled on travis ci.

Xcode 5.0.2, iOS 7 only, not compiling for 64bit yet, CargoBay 2.0.2.

Hmm, I'm not sure what to say about that. 277f6f8 changed offset to __offset to avoid a potential collision with the builtin function. Does that help?

That did it, thanks a lot.

Would it be possible to get a new version with this fix in CocoaPods? I just ran into this same issue :)