leethomason / tinyxml2

TinyXML2 is a simple, small, efficient, C++ XML parser that can be easily integrated into other programs.
zlib License
5.09k stars 1.83k forks source link

invalid conversion from 'iso_s32*' {aka 'long int*'} to 'int*' [-fpermissive] #982

Closed diplfranzhoepfinger closed 4 months ago

diplfranzhoepfinger commented 5 months ago

Hi,

using tinyxml2 on a ESP32 with ESP-IDF 5.2.1, i get following Error:

[tinyxml2](error: invalid conversion from 'iso_s32*' {aka 'long int*'} to 'int*' [-fpermissive])

so i think it is not good to use

XMLError XMLAttribute::QueryIntValue( int* value ) const

but better would be:

XMLError XMLAttribute::QueryIntValue( int32_t* value ) const