From 38aba072908357b4eebc68462714b01a9c2d0138 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Sat, 14 Mar 2015 18:47:08 +0000 Subject: [PATCH] usigned long is uint64 on Linux --- native_mate/converter.cc | 3 ++- native_mate/converter.h | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/native_mate/converter.cc b/native_mate/converter.cc index cc66b8d390..2c9d95f941 100644 --- a/native_mate/converter.cc +++ b/native_mate/converter.cc @@ -31,6 +31,7 @@ bool Converter::FromV8(Isolate* isolate, Handle val, bool* out) { return true; } +#if !defined(OS_LINUX) Handle Converter::ToV8(Isolate* isolate, unsigned long val) { return MATE_INTEGER_NEW(isolate, val); @@ -43,7 +44,7 @@ bool Converter::FromV8(Isolate* isolate, Handle val, *out = val->IntegerValue(); return true; } - +#endif Handle Converter::ToV8(Isolate* isolate, int32_t val) { return MATE_INTEGER_NEW(isolate, val); diff --git a/native_mate/converter.h b/native_mate/converter.h index 37d86f82bf..e2fe3e885c 100644 --- a/native_mate/converter.h +++ b/native_mate/converter.h @@ -33,6 +33,7 @@ struct Converter { bool* out); }; +#if !defined(OS_LINUX) template<> struct Converter { static v8::Handle ToV8(v8::Isolate* isolate, @@ -41,6 +42,7 @@ struct Converter { v8::Handle val, unsigned long* out); }; +#endif template<> struct Converter {