Reminder to self and note of potential future historic interest:
unsigned long and uint64_t are not the same type on some platforms (e.g.
gcc+Linux 32bit), thus the normal uint64_t specialization for to/from JS
conversions does not apply to ulong on those platforms. This leads to ulong
wanting to convert as (ulong *) due to the default cast specializations.
This breaks forwarding to/from native functions which use ulong
parameter/return types.
The fix for this involves adding to/from JS specializations for ulong, but
only on platforms for which ulong is not the same as one of the uintNN_t types.
This is fixed on my hard drive at home but it requires some metatemplate
code which in turn causes convert.h to no longer be standalone code (it
currently has no deps aside from STL and v8). Once i'm emotionally over the
need for that dependency, i'll get this committed.
Original issue reported on code.google.com by sgbeal@googlemail.com on 30 Oct 2009 at 12:46
Original issue reported on code.google.com by
sgbeal@googlemail.com
on 30 Oct 2009 at 12:46