From 5702213bff98dd47d3d546badcd0264014c186c6 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 6 Dec 2020 12:49:58 +0100 Subject: [PATCH] doc: Tweak example. * doc/intprops.texi (Checking Integer Overflow): Use 'printf', not 'print'. --- ChangeLog | 6 ++++++ doc/intprops.texi | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e0280219a0..8f749e286d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2020-12-06 Bruno Haible + doc: Tweak example. + * doc/intprops.texi (Checking Integer Overflow): Use 'printf', not + 'print'. + +2020-12-06 Bruno Haible + filenamecat-tests: Use idx_t for nonnegative ptrdiff_t variables. * tests/test-filenamecat.c: Include idx.h. (main): Mark prefixlen as nonnegative. diff --git a/doc/intprops.texi b/doc/intprops.texi index f3a958a75f..b668285c51 100644 --- a/doc/intprops.texi +++ b/doc/intprops.texi @@ -167,7 +167,7 @@ arithmetic. For example: if ((a + b < b) == (a < 0)) a += b; else - print ("overflow"); + printf ("overflow\n"); @end example @noindent -- 2.11.4.GIT