<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
<pre>Thanks John.<br><br>On Nov 1, 2012, at 11:18 AM, Sudhindra Deshpande wrote:
><i> How do I catch truncation errors like this:
</i>><i>     unsigned short v1 = 0;
</i>><i>     unsigned int v2 = 0;
</i>><i>     v2 = 2000;
</i>><i>     v1 = v2;
</i>
-Wconversion will warn about any sort of implicit conversion that
discards precision or range.

John.</pre><br><br>                                     </div></body>
</html>