mirror of
https://github.com/matrix-construct/construct
synced 2024-11-17 23:40:57 +01:00
ircd::js: Quadword value construction.
This commit is contained in:
parent
0e541cd3a9
commit
6f7dde8fdf
1 changed files with 7 additions and 0 deletions
|
@ -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)}
|
||||
|
|
Loading…
Reference in a new issue