Add a note mentioning that bools promote to 0 or 1

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3352 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2002-08-15 19:36:05 +00:00
parent d05e359b10
commit 2b4dcbb91d

View File

@ -1559,7 +1559,8 @@ all else are '<tt>false</tt>'.<p>
When extending an integral value from a type of one signness to another (for
example '<tt>sbyte</tt>' to '<tt>ulong</tt>'), the value is sign-extended if the
<b>source</b> value is signed, and zero-extended if the source value is
unsigned.<p>
unsigned. <tt>bool</tt> values are always zero extended into either zero or
one.<p>
<h5>Example:</h5>
<pre>
@ -1694,7 +1695,7 @@ more...
<address><a href="mailto:sabre@nondot.org">Chris Lattner</a></address>
<!-- Created: Tue Jan 23 15:19:28 CST 2001 -->
<!-- hhmts start -->
Last modified: Wed Aug 14 12:54:55 CDT 2002
Last modified: Thu Aug 15 11:18:37 CDT 2002
<!-- hhmts end -->
</font>
</body></html>