From: Guus Sliepen Date: Mon, 26 Oct 2015 12:46:30 +0000 (+0100) Subject: Avoid undefined behavior. X-Git-Tag: release-1.1pre12~91 X-Git-Url: https://www.tinc-vpn.org/git/browse?a=commitdiff_plain;h=7a8515112a4bf94da3cec157ada6e0794a03b946;hp=7a8515112a4bf94da3cec157ada6e0794a03b946;p=tinc Avoid undefined behavior. Left shifts of negative values is undefined in C. This happens a lot in the Ed25519 code. Cast to unsigned first, then cast the result back to signed where necessary. ---