[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: libapl question
From: |
Chris Moller |
Subject: |
Re: libapl question |
Date: |
Fri, 1 Jan 2021 11:03:23 -0500 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 |
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.
apl.diff
Description: Text Data