<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I just noticed this thread. I have an existing PR at <a href="https://github.com/apple/swift-corelibs-foundation/pull/603/files#diff-86379d50d0ad34b20bc3e4544e1b6f67R86" class="">https://github.com/apple/swift-corelibs-foundation/pull/603/files#diff-86379d50d0ad34b20bc3e4544e1b6f67R86</a> that address this issue. I have to remove some stuff that was addressed elsewhere before it can be merged, however.<div class=""><br class=""></div><div class="">I'll be working on that tomorrow, probably.</div><div class=""><br class=""></div><div class="">Cheers,</div><div class="">- Will</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Sep 18, 2016, at 3:46 PM, Philippe Hausler via swift-dev <<a href="mailto:swift-dev@swift.org" class="">swift-dev@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="content-type" content="text/html; charset=utf-8" class=""><div dir="auto" class=""><div class=""><div style="direction: inherit;" class="">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 class="">Sent from my iPhone</div><div class=""><br class="">On Sep 18, 2016, at 2:27 PM, Michael Gottesman <<a href="mailto:mgottesman@apple.com" class="">mgottesman@apple.com</a>> wrote:<br class=""><br class=""></div><blockquote type="cite" class=""><div class=""><span class=""></span><br class=""><blockquote type="cite" class=""><span class="">On Sep 16, 2016, at 4:37 PM, Eric Wing via swift-dev <<a href="mailto:swift-dev@swift.org" class="">swift-dev@swift.org</a>> wrote:</span><br class=""></blockquote><blockquote type="cite" class=""><span class=""></span><br class=""></blockquote><blockquote type="cite" class=""><span class="">I'm trying to build Swift 3 for Raspberry Pi 2/armv7.</span><br class=""></blockquote><blockquote type="cite" class=""><span class=""></span><br class=""></blockquote><blockquote type="cite" class=""><span class="">I'm currently hitting a compile error at:</span><br class=""></blockquote><blockquote type="cite" class=""><span class=""></span><br class=""></blockquote><blockquote type="cite" class=""><span class="">Foundation/NSXMLNode.swift:86:351: error: integer literal '4293918720'</span><br class=""></blockquote><blockquote type="cite" class=""><span class="">overflows when stored into 'Int'.</span><br class=""></blockquote><blockquote type="cite" class=""><span class=""></span><br class=""></blockquote><blockquote type="cite" class=""><span class="">public static let nodePreserveAll = Options(rawValue:</span><br class=""></blockquote><blockquote type="cite" class=""><span class="">Options([.nodePreserveNamespaceOrder, .nodePreserveAttributeOrder,</span><br class=""></blockquote><blockquote type="cite" class=""><span class="">.nodePreserveEntities, .nodePreservePrefixes, .nodePreserveCDATA,</span><br class=""></blockquote><blockquote type="cite" class=""><span class="">.nodePreserveEmptyElements, .nodePreserveQuotes,</span><br class=""></blockquote><blockquote type="cite" class=""><span class="">.nodePreserveWhitespace, .nodePreserveDTD,</span><br class=""></blockquote><blockquote type="cite" class=""><span class="">.nodePreserveCharacterReferences]).rawValue | UInt(bitPattern:</span><br class=""></blockquote><blockquote type="cite" class=""><span class="">0xFFF00000))</span><br class=""></blockquote><blockquote type="cite" class=""><span class=""></span><br class=""></blockquote><blockquote type="cite" class=""><span class=""></span><br class=""></blockquote><blockquote type="cite" class=""><span class="">I'm assuming this is probably related to the fact that the Pi2 (armv7)</span><br class=""></blockquote><blockquote type="cite" class=""><span class="">is 32-bit, though I'm surprised this isn't already seen on iOS 32-bit.</span><br class=""></blockquote><blockquote type="cite" class=""><span class="">What is the appropriate fix?</span><br class=""></blockquote><span class=""></span><br class=""><span class="">+CC Tony/Phillipe.</span><br class=""><span class=""></span><br class=""><blockquote type="cite" class=""><span class=""></span><br class=""></blockquote><blockquote type="cite" class=""><span class="">Thanks,</span><br class=""></blockquote><blockquote type="cite" class=""><span class="">Eric</span><br class=""></blockquote><blockquote type="cite" class=""><span class="">_______________________________________________</span><br class=""></blockquote><blockquote type="cite" class=""><span class="">swift-dev mailing list</span><br class=""></blockquote><blockquote type="cite" class=""><span class=""><a href="mailto:swift-dev@swift.org" class="">swift-dev@swift.org</a></span><br class=""></blockquote><blockquote type="cite" class=""><span class=""><a href="https://lists.swift.org/mailman/listinfo/swift-dev" class="">https://lists.swift.org/mailman/listinfo/swift-dev</a></span><br class=""></blockquote><span class=""></span><br class=""></div></blockquote></div>_______________________________________________<br class="">swift-dev mailing list<br class=""><a href="mailto:swift-dev@swift.org" class="">swift-dev@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-dev<br class=""></div></blockquote></div><br class=""></div></body></html>