raysan5 / rini

A simple and easy-to-use config init files reader and writer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

const fix C++

tyqualters opened this issue · comments

To get rini.h to work for me in C++ I had to change line 498 char *buffer_ptr = buffer; to const char *buffer_ptr = buffer; to fix error:

.../rini-main/src/rini.h:498:24: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
498 | char *buffer_ptr = buffer;

commented

@tyqualters Thanks for reporting! Feel free to send a PR with the review.

@tyqualters Thanks for reporting! Feel free to send a PR with the review.

Ok, I created a Pull Request with the change