0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-30 04:38:52 +02:00

ircd::js: Quadword value construction.

This commit is contained in:
Jason Volk 2016-10-31 12:55:10 -07:00
parent 0e541cd3a9
commit 6f7dde8fdf

View file

@ -56,6 +56,7 @@ struct value
value(const nullptr_t &);
value(const double &);
value(const float &);
value(const uint64_t &);
value(const int32_t &);
value(const bool &);
value(const jsid &);
@ -152,6 +153,12 @@ value<L>::value(const int32_t &val)
{
}
template<lifetime L>
value<L>::value(const uint64_t &val)
:value<L>::root::type{JS::DoubleValue(val)}
{
}
template<lifetime L>
value<L>::value(const float &val)
:value<L>::root::type{JS::Float32Value(val)}