<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>
GitLab
</title>
<style>img {
max-width: 100%; height: auto;
}
</style>
</head>
<body>
<div class="content">
<div></div>
<p dir="auto">In our 32bit MinGW runner, <code>long</code> seems to be 32bit. And thus this code is wrong:</p>
<pre class="code highlight js-syntax-highlight plaintext" lang="plaintext" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">static void</span>
<span id="LC2" class="line" lang="plaintext">doOptMaxearlydata(tOptions* pOptions, tOptDesc* pOptDesc)</span>
<span id="LC3" class="line" lang="plaintext">{</span>
<span id="LC4" class="line" lang="plaintext"> static struct {long rmin, rmax;} const rng[1] = {</span>
<span id="LC5" class="line" lang="plaintext"> { 1, 4294967296 } };</span></code></pre>
<p dir="auto">The value <code>4294967296</code> is <code>0</code> when put into a 32bit integer. Better to use <code>long long</code> or <code>uint64_t</code> or <code>4294967295</code>.</p>
<p dir="auto">I didn't have time to look further into the code, so I can't judge what option is appropriate.</p>
</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #777777;">
—
<br>
Reply to this email directly or <a href="https://gitlab.com/gnutls/gnutls/issues/700">view it on GitLab</a>.
<br>
You're receiving this email because of your account on gitlab.com.
If you'd like to receive fewer emails, you can
<a href="https://gitlab.com/sent_notifications/6eccc4dc449b66b684a237f555f6de7c/unsubscribe">unsubscribe</a>
from this thread or
adjust your notification settings.
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Issue","url":"https://gitlab.com/gnutls/gnutls/issues/700"}}</script>
</p>
</div>
</body>
</html>