Closed asfluido closed 9 years ago
A further patch is included, that permits to me to recover a complex object (a hash containing several hashes and arrays). Without that patch, recovering crashed with this error:
mruby: /data/code/motri/mruby/mruby-marshal/src/marshal.cpp:407: mrb_value {anonymous}::read_context::marshal(): Assertion `id < (((struct RArray*)((objects).value.p))->len)' failed.
Since there is c++ in the middle, I am trying patches in a blind-like fashion. I really hope someone will rewrite this gem in C...
Hello. This patch fixes a bug (the lack of a break statement at line 245 of marshal.cpp) and contains three more changes that I needed to apply in order to include this gem in a recent version of mruby on linux.
The addition of the '-fpermissive' compiler option is due to the appearance of a compilation error of the form
referring to line 536 of marshal.cpp. Being not a friend at all of c++, I have no idea about the proper way to fix this error.