Skip to content

Commit 217ecd3

Browse files
committed
C++: Add <p> tags to split text into paragraphs
Without this, the rendered output is one big paragraph.
1 parent 398896a commit 217ecd3

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

cpp/ql/src/Likely Bugs/Arithmetic/SignedOverflowCheck.qhelp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ Solutions to this problem can be thought of as falling into one of two
2121
categories: (1) rewrite the signed expression so that overflow cannot occur
2222
but the signedness remains, or (2) rewrite (or cast) the signed expression
2323
into unsigned form.
24+
</p>
2425

26+
<p>
2527
Below we list examples of expressions where signed overflow may
2628
occur, along with proposed solutions. The list should not be
2729
considered exhaustive.
@@ -31,21 +33,29 @@ considered exhaustive.
3133
Given <code>unsigned short i, delta</code> and <code>i + delta &lt; i</code>,
3234
it is possible to rewrite it as <code>(unsigned short)(i + delta)&nbsp;&lt;&nbsp;i</code>.
3335
Note that <code>i + delta</code>does not actually overflow, due to <code>int</code> promotion
36+
</p>
3437

38+
<p>
3539
Given <code>unsigned short i, delta</code> and <code>i + delta &lt; i</code>,
3640
it is also possible to rewrite it as <code>USHORT_MAX - delta</code>. It must be true
3741
that <code>delta &gt; 0</code> and the <code>limits.h</code> or <code>climits</code>
3842
header has been included.
43+
</p>
3944

45+
<p>
4046
Given <code>int i, delta</code> and <code>i + delta &lt; i</code>,
4147
it is possible to rewrite it as <code>INT_MAX - delta</code>. It must be true
4248
that <code>delta &gt; 0</code> and the <code>limits.h</code> or <code>climits</code>
4349
header has been included.
50+
</p>
4451

52+
<p>
4553
Given <code>int i, delta</code> and <code>i + delta &lt; i</code>,
4654
it is also possible to rewrite it as <code>(unsigned)i + delta &lt; i</code>.
4755
Note that program semantics are affected by this change.
56+
</p>
4857

58+
<p>
4959
Given <code>int i, delta</code> and <code>i + delta &lt; i</code>,
5060
it is also possible to rewrite it as <code>unsigned int i, delta</code> and
5161
<code>i + delta &lt; i</code>. Note that program semantics are

0 commit comments

Comments
 (0)