<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Assertion `!"invalid type"' failed when constant expression involves literal of different type"
href="https://bugs.freedesktop.org/show_bug.cgi?id=101766#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Assertion `!"invalid type"' failed when constant expression involves literal of different type"
href="https://bugs.freedesktop.org/show_bug.cgi?id=101766">bug 101766</a>
from <span class="vcard"><a class="email" href="mailto:david@drmaciver.com" title="David R. MacIver <david@drmaciver.com>"> <span class="fn">David R. MacIver</span></a>
</span></b>
<pre><span class="quote">> So makes sense that i2f wants an int input. Something must be auto-converting the int to a float, but then leaving the i2f in? Odd.</span >
Note that the correct behaviour here is a compile error. If I remove the vec2()
call I get an error "0:4(2): error: initializer of type int cannot be assigned
to variable of type float"
So the problem is probably less auto-conversion and more bad code putting the
compiler in an invalid state as it continues error checking.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>