<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div><div style="direction: inherit;">The reason for no issue on iOS 32 bit or watchOS is because the value is calculated via NSUInteger which does not overflow at the sign bits like Int. TBH I think the right way to solve this constant is to just emit the raw value directly instead of attempting to emulate c with bitwise or.</div><br>Sent from my iPhone</div><div><br>On Sep 18, 2016, at 2:27 PM, Michael Gottesman &lt;<a href="mailto:mgottesman@apple.com">mgottesman@apple.com</a>&gt; wrote:<br><br></div><blockquote type="cite"><div><span></span><br><blockquote type="cite"><span>On Sep 16, 2016, at 4:37 PM, Eric Wing via swift-dev &lt;<a href="mailto:swift-dev@swift.org">swift-dev@swift.org</a>&gt; wrote:</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>I'm trying to build Swift 3 for Raspberry Pi 2/armv7.</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>I'm currently hitting a compile error at:</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>Foundation/NSXMLNode.swift:86:351: error: integer literal '4293918720'</span><br></blockquote><blockquote type="cite"><span>overflows when stored into 'Int'.</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>public static let nodePreserveAll = Options(rawValue:</span><br></blockquote><blockquote type="cite"><span>Options([.nodePreserveNamespaceOrder, .nodePreserveAttributeOrder,</span><br></blockquote><blockquote type="cite"><span>.nodePreserveEntities, .nodePreservePrefixes, .nodePreserveCDATA,</span><br></blockquote><blockquote type="cite"><span>.nodePreserveEmptyElements, .nodePreserveQuotes,</span><br></blockquote><blockquote type="cite"><span>.nodePreserveWhitespace, .nodePreserveDTD,</span><br></blockquote><blockquote type="cite"><span>.nodePreserveCharacterReferences]).rawValue | UInt(bitPattern:</span><br></blockquote><blockquote type="cite"><span>0xFFF00000))</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>I'm assuming this is probably related to the fact that the Pi2 (armv7)</span><br></blockquote><blockquote type="cite"><span>is 32-bit, though I'm surprised this isn't already seen on iOS 32-bit.</span><br></blockquote><blockquote type="cite"><span>What is the appropriate fix?</span><br></blockquote><span></span><br><span>+CC Tony/Phillipe.</span><br><span></span><br><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>Thanks,</span><br></blockquote><blockquote type="cite"><span>Eric</span><br></blockquote><blockquote type="cite"><span>_______________________________________________</span><br></blockquote><blockquote type="cite"><span>swift-dev mailing list</span><br></blockquote><blockquote type="cite"><span><a href="mailto:swift-dev@swift.org">swift-dev@swift.org</a></span><br></blockquote><blockquote type="cite"><span><a href="https://lists.swift.org/mailman/listinfo/swift-dev">https://lists.swift.org/mailman/listinfo/swift-dev</a></span><br></blockquote><span></span><br></div></blockquote></body></html>