usigned long is uint64 on Linux
This commit is contained in:
Родитель
a636fad51e
Коммит
38aba07290
|
@ -31,6 +31,7 @@ bool Converter<bool>::FromV8(Isolate* isolate, Handle<Value> val, bool* out) {
|
|||
return true;
|
||||
}
|
||||
|
||||
#if !defined(OS_LINUX)
|
||||
Handle<Value> Converter<unsigned long>::ToV8(Isolate* isolate,
|
||||
unsigned long val) {
|
||||
return MATE_INTEGER_NEW(isolate, val);
|
||||
|
@ -43,7 +44,7 @@ bool Converter<unsigned long>::FromV8(Isolate* isolate, Handle<Value> val,
|
|||
*out = val->IntegerValue();
|
||||
return true;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Handle<Value> Converter<int32_t>::ToV8(Isolate* isolate, int32_t val) {
|
||||
return MATE_INTEGER_NEW(isolate, val);
|
||||
|
|
|
@ -33,6 +33,7 @@ struct Converter<bool> {
|
|||
bool* out);
|
||||
};
|
||||
|
||||
#if !defined(OS_LINUX)
|
||||
template<>
|
||||
struct Converter<unsigned long> {
|
||||
static v8::Handle<v8::Value> ToV8(v8::Isolate* isolate,
|
||||
|
@ -41,6 +42,7 @@ struct Converter<unsigned long> {
|
|||
v8::Handle<v8::Value> val,
|
||||
unsigned long* out);
|
||||
};
|
||||
#endif
|
||||
|
||||
template<>
|
||||
struct Converter<int32_t> {
|
||||
|
|
Загрузка…
Ссылка в новой задаче