Re: convert jsdouble to C double?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Re: convert jsdouble to C double?

Brendan Eich
Weiyang Zhou wrote:
> Does anyone know how to convert a jsdouble to a C language double?

They are the same type -- C type equivalence is structural.  Viz,

$ grep jsdouble jspubtd.h
typedef float64   jsdouble;
$ grep -i float64 js*types.h
jsotypes.h:typedef JSFloat64 float64;
jstypes.h:** TYPES:       JSFloat64
jstypes.h:typedef double          JSFloat64;

mozilla-jseng mailing list
[hidden email]