bug-teseq
[Top][All Lists]
Advanced

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

[Bug-teseq] teseq-1.1.1 bug report


From: David Binderman
Subject: [Bug-teseq] teseq-1.1.1 bug report
Date: Tue, 19 Apr 2022 18:57:12 +0000

Hello there,

I just compiled the teseq package with new C compiler clang-14.
It said:

src/teseq.c:626:10: warning: floating-point comparison is always false; constant cannot be represented exactly in ty
pe 'float' [-Wliteral-range]

Source code is

  if (id == 8.1)
    return "NATS-SEFI";

Floating point compare is notoriously unreliable. Suggest use some other data types.
There are multiple duplicates of this warning message for the same function.

Regards

David Binderman



reply via email to

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