From 14e4e2d40f91cde56f5692beb7a0c8edf374c0a2 Mon Sep 17 00:00:00 2001 From: Marco Gario Date: Wed, 15 Apr 2020 12:05:54 +0200 Subject: [PATCH] Integeroverflow.qhelp: use paragraphs within sections --- .../IntegerOverflow/IntegerOverflow.qhelp | 42 +++++++++++-------- 1 file changed, 25 insertions(+), 17 deletions(-) diff --git a/ql/src/experimental/IntegerOverflow/IntegerOverflow.qhelp b/ql/src/experimental/IntegerOverflow/IntegerOverflow.qhelp index 3f0d10e111a..88dfc682d7c 100644 --- a/ql/src/experimental/IntegerOverflow/IntegerOverflow.qhelp +++ b/ql/src/experimental/IntegerOverflow/IntegerOverflow.qhelp @@ -1,23 +1,31 @@ - - Arithmetic calculations involving integers should be checked to ensure that overflow or - underflow cannot occur, as this may cause incorrect results or program crashes. - - + +

+ Arithmetic calculations involving integers should be checked to ensure that overflow or + underflow cannot occur, as this may cause incorrect results or program crashes. +

+
+ +

Before performing an integer operation that may cause an overflow, check the operands to ensure that the result of the operation will fit into the value range of the type. Alternatively, check the result of the operation to see whether it overflowed. - - - In the following example snippet, the addition start + offset may overflow if - either start or offset is very large, which will cause the indexing - operation to panic at runtime: - - One way to prevent this is to check whether start + offset overflows: - - - -

  • Wikipedia Integer overflow.
  • - +

    +
    + +

    + In the following example snippet, the addition start + offset may overflow if + either start or offset is very large, which will cause the indexing + operation to panic at runtime: +

    + +

    + One way to prevent this is to check whether start + offset overflows: +

    + +
    + +
  • Wikipedia Integer overflow.
  • +