<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="generator" content="pandoc" />
<title></title>
<style type="text/css">code{white-space: pre;}</style>
</head>
<body>
<p>And after some more investigation, <code>unsigned int</code> is guaranteed to be a minimum of 32-bits in C99. This means that the check to see if <code>port</code> fits inside <code>unsigned</code> is enough in terms checking for overflows, and given that we only care about at most 16-bits, we are fine.</p>
<p>Attached updated (final) patch.</p>
<p>On 2016-10-28 16:22, Filip Roséen wrote:</p>
<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;color:#500050">
<pre><code> ...</code></pre>
</blockquote>
</body>
</html>