[Top][All Lists]

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

[Octave-bug-tracker] [bug #58888] warning about 32 bit int printed with

From: A.R. Burgers
Subject: [Octave-bug-tracker] [bug #58888] warning about 32 bit int printed with %ld
Date: Mon, 3 Aug 2020 10:33:26 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/18.17763


                 Summary: warning about 32 bit int printed with %ld
                 Project: GNU Octave
            Submitted by: arb
            Submitted on: Mon 03 Aug 2020 02:33:24 PM UTC
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Missed Error or Warning
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: dev
         Discussion Lock: Any
        Operating System: Any



In pt-eval.cc I get this warning, probably because the build is with 32 bit

../octave/libinterp/parse-tree/pt-eval.cc: In member function 'virtual void
../octave/libinterp/parse-tree/pt-eval.cc:2534:75: warning: format '%ld'
expects argument of type 'long int', but argument 3 has type 'octave_idx_type'
{aka 'int'} [-Wformat=]
 2534 |                            "FOR loop limit is infinite, will stop
after %ld steps",
   long int
 2535 |                            steps);
      |                            ~~~~~                                      
      |                            |
      |                            octave_idx_type {aka int}


Reply to this item at:


  Message sent via Savannah

reply via email to

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