From 89e1903bccf46095b79b129060861f8fa30f7cec Mon Sep 17 00:00:00 2001 From: "Dr. Martin Goik" <goik@hdm-stuttgart.de> Date: Sun, 18 Apr 2021 21:46:04 +0200 Subject: [PATCH] Cosmetics --- Doc/Sd1/languageFundamentals.xml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Doc/Sd1/languageFundamentals.xml b/Doc/Sd1/languageFundamentals.xml index 2191bf3fc..c681408c5 100644 --- a/Doc/Sd1/languageFundamentals.xml +++ b/Doc/Sd1/languageFundamentals.xml @@ -7490,13 +7490,15 @@ System.out.println(value);</programlisting></td> <tr> <td valign="top"><programlisting language="none">byte value = 127; // Max possible value -<emphasis role="red">value = (byte)(value + 1); // cast, possible overflow</emphasis> +<emphasis role="red">value = (byte)(value + 1); // cast required, + // possible overflow</emphasis> System.out.println(value);</programlisting></td> <td valign="top"><programlisting language="none">byte value = 127; // Max possible value -<emphasis role="red">value++; // o.K., will cycle through range</emphasis> +<emphasis role="red">value++; // cycle through range, + // no cast required. </emphasis> System.out.println(value);</programlisting></td> </tr> -- GitLab