bug-make
[Top][All Lists]
Advanced

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

[bug #65448] $(intcmp) problems with negative integers


From: Robert Bogomip
Subject: [bug #65448] $(intcmp) problems with negative integers
Date: Mon, 11 Mar 2024 10:23:24 -0400 (EDT)

URL:
  <https://savannah.gnu.org/bugs/?65448>

                 Summary: $(intcmp) problems with negative integers
                   Group: make
               Submitter: bobbogo
               Submitted: Mon 11 Mar 2024 02:23:24 PM UTC
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: 4.4.1
        Operating System: None
           Fixed Release: None
           Triage Status: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Mon 11 Mar 2024 02:23:24 PM UTC By: Robert Bogomip <bobbogo>
_intcmp_ complains when given non-integer input:

$ make --eval '$(error [$(intcmp hello,7,small,same,large)])'
make: *** non-numeric first argument to 'intcmp' function: 'hello'.  Stop.


It is quite happy parsing negative input:

$ make --eval '$(error [$(intcmp -8,7,small,same,large)])'
make: *** [small].  Stop.


But gets this one *wrong*:

$ make --eval '$(error [$(intcmp -8,-7,small,same,large)])'
make: *** [large].  Stop.


Gnu make 4.4.1 on Fedora 39, package make-4.4.1-2.fc39.x86_64







    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?65448>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

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