bug-apl
[Top][All Lists]
Advanced

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

Re: libapl question


From: Dr . Jürgen Sauermann
Subject: Re: libapl question
Date: Fri, 1 Jan 2021 20:17:22 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0

Hi Chris,

thanks, fixed in SVN 1401.

Best Regards,
Jürgen


On 1/1/21 5:03 PM, Chris Moller wrote:
Hi, Jürgen,

It may be just a weirdness in my compiler (g++ 10.2.1 20201125 (Red Hat 10.2.1-9)) but when I built your latest libapl it gave half a dozen instances of things similar to:

libapl.cc: In function ‘Function* get_function_ucs(const unsigned int*, Function**, Function**)’:
libapl.cc:459:55: error: invalid conversion from ‘Function_P’ {aka ‘const Function*’} to ‘APL_function’ {aka ‘Function*’} [-fpermissive]
  459 |              case TC_OPER2: return tos[0].get_function();
      |                                    ~~~~~~~~~~~~~~~~~~~^~
      |                                                       |
      |                                                       Function_P {aka const Function*}

I patched around it by casting tos[0].get_function() to  (APL_function)tos[1].get_function() but I expect there's a more elegant fix.

Anyway, I attached a diff file if you want to use it.

Chris

On 1/1/21 7:24 AM, Dr. Jürgen Sauermann wrote:
Hi Chris,

fixed in SVN 1400.




reply via email to

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