mirror of
https://github.com/electron/electron.git
synced 2026-02-18 02:51:53 -05:00
usigned long is uint64 on Linux
This commit is contained in:
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user