Merge: Separate Erasure Compiler bugfix
authorJean Privat <jean@pryen.org>
Thu, 14 May 2015 23:36:56 +0000 (19:36 -0400)
committerJean Privat <jean@pryen.org>
Thu, 14 May 2015 23:36:56 +0000 (19:36 -0400)
commit4eeeca440c55a50312cedb4de5dbb91543d3cd05
treedd3e28fb27e123628ec566278aa3d799891b2b50
parent97795ca0e7cef44eecacea845c19c11b1134ba2c
parent98de74c5bf3a829eaeb23a83dc93a6c62c3eb7f7
Merge: Separate Erasure Compiler bugfix

In commit [12aa160](https://github.com/privat/nit/commit/12aa16093122a9f55976585b76b01869d6899634) by @xymus, the signature of a BOX was updated to the ctype_extern, i.e. void\* for all pointers.

The callsite was modified to ctype_extern in separate compiler but was not updated in separate erasure compiler.

This caused a bug in #1309 when NativeString was introduced in BufferedStream as the buffer, since the callsite and signature were defined with different signatures, the prototype with void\*, the implementation with char\*.

This PR fixes the bug by setting both to void\* as in separate compiler.

Pull-Request: #1344
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>