usigned long is uint64 on Linux
This commit is contained in:
parent
a636fad51e
commit
38aba07290
2 changed files with 4 additions and 1 deletions
|
@ -31,6 +31,7 @@ bool Converter<bool>::FromV8(Isolate* isolate, Handle<Value> val, bool* out) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !defined(OS_LINUX)
|
||||||
Handle<Value> Converter<unsigned long>::ToV8(Isolate* isolate,
|
Handle<Value> Converter<unsigned long>::ToV8(Isolate* isolate,
|
||||||
unsigned long val) {
|
unsigned long val) {
|
||||||
return MATE_INTEGER_NEW(isolate, val);
|
return MATE_INTEGER_NEW(isolate, val);
|
||||||
|
@ -43,7 +44,7 @@ bool Converter<unsigned long>::FromV8(Isolate* isolate, Handle<Value> val,
|
||||||
*out = val->IntegerValue();
|
*out = val->IntegerValue();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
Handle<Value> Converter<int32_t>::ToV8(Isolate* isolate, int32_t val) {
|
Handle<Value> Converter<int32_t>::ToV8(Isolate* isolate, int32_t val) {
|
||||||
return MATE_INTEGER_NEW(isolate, val);
|
return MATE_INTEGER_NEW(isolate, val);
|
||||||
|
|
|
@ -33,6 +33,7 @@ struct Converter<bool> {
|
||||||
bool* out);
|
bool* out);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#if !defined(OS_LINUX)
|
||||||
template<>
|
template<>
|
||||||
struct Converter<unsigned long> {
|
struct Converter<unsigned long> {
|
||||||
static v8::Handle<v8::Value> ToV8(v8::Isolate* isolate,
|
static v8::Handle<v8::Value> ToV8(v8::Isolate* isolate,
|
||||||
|
@ -41,6 +42,7 @@ struct Converter<unsigned long> {
|
||||||
v8::Handle<v8::Value> val,
|
v8::Handle<v8::Value> val,
|
||||||
unsigned long* out);
|
unsigned long* out);
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
template<>
|
template<>
|
||||||
struct Converter<int32_t> {
|
struct Converter<int32_t> {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue