Add a note mentioning that bools promote to 0 or 1
authorChris Lattner <sabre@nondot.org>
Thu, 15 Aug 2002 19:36:05 +0000 (19:36 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 15 Aug 2002 19:36:05 +0000 (19:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3352 91177308-0d34-0410-b5e6-96231b3b80d8

docs/LangRef.html

index 368711356e83363265469cb3c67897cdbaac21f5..19fe8525b9a5f72c894dabe767badb2909f27abd 100644 (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>