texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: * tp/Texinfo/XS/convert/format_html.c (html_inter


From: Patrice Dumas
Subject: branch master updated: * tp/Texinfo/XS/convert/format_html.c (html_internal_command_tree): fix condition (found by clang "logical not is only applied to the left hand side of this comparison").
Date: Fri, 11 Oct 2024 04:37:48 -0400

This is an automated email from the git hooks/post-receive script.

pertusus pushed a commit to branch master
in repository texinfo.

The following commit(s) were added to refs/heads/master by this push:
     new 39d968a683 * tp/Texinfo/XS/convert/format_html.c 
(html_internal_command_tree): fix condition (found by clang "logical not is 
only applied to the left hand side of this comparison").
39d968a683 is described below

commit 39d968a68324e8acd89c75182085189ed594be18
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Fri Oct 11 10:37:40 2024 +0200

    * tp/Texinfo/XS/convert/format_html.c (html_internal_command_tree):
    fix condition (found by clang "logical not is only applied to the left
    hand side of this comparison").
---
 ChangeLog                           | 6 ++++++
 tp/Texinfo/XS/convert/format_html.c | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 6d9000508a..2b23d8b1f7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-11-10  Patrice Dumas  <pertusus@free.fr>
+
+       * tp/Texinfo/XS/convert/format_html.c (html_internal_command_tree):
+       fix condition (found by clang "logical not is only applied to the left
+       hand side of this comparison").
+
 2024-11-10  Patrice Dumas  <pertusus@free.fr>
 
        * tp/Texinfo/XS/parsetexi/macro.c (parse_macro_command_line): remove
diff --git a/tp/Texinfo/XS/convert/format_html.c 
b/tp/Texinfo/XS/convert/format_html.c
index a3d676e39d..74feecb862 100644
--- a/tp/Texinfo/XS/convert/format_html.c
+++ b/tp/Texinfo/XS/convert/format_html.c
@@ -1778,7 +1778,7 @@ html_internal_command_tree (CONVERTER *self, const 
ELEMENT *command,
             {
               const char *section_number
                 = lookup_extra_string (command, AI_key_section_number);
-              if (section_number && !self->conf->NUMBER_SECTIONS.o.integer == 
0)
+              if (section_number && self->conf->NUMBER_SECTIONS.o.integer != 0)
                 {
                   NAMED_STRING_ELEMENT_LIST *replaced_substrings
                     = new_named_string_element_list ();



reply via email to

[Prev in Thread] Current Thread [Next in Thread]