cocos2d::JniHelper::* long type convert error (#19101)

* fix type

* remove redundant
This commit is contained in:
Arnold 2018-10-16 17:00:33 +08:00 committed by minggo
parent 05ae5f7e83
commit 19c9e922eb
1 changed files with 9 additions and 0 deletions

View File

@ -281,6 +281,15 @@ private:
static jstring convert(LocalRefMapType& localRefs, cocos2d::JniMethodInfo& t, const std::string& x);
inline static jint convert(LocalRefMapType&, cocos2d::JniMethodInfo&, int32_t value) { return static_cast<jint>(value);}
inline static jlong convert(LocalRefMapType&, cocos2d::JniMethodInfo&, int64_t value) { return static_cast<jlong>(value);}
inline static jfloat convert(LocalRefMapType&, cocos2d::JniMethodInfo&, float value) { return static_cast<jfloat>(value);}
inline static jdouble convert(LocalRefMapType&, cocos2d::JniMethodInfo&, double value) { return static_cast<jdouble>(value);}
inline static jboolean convert(LocalRefMapType&, cocos2d::JniMethodInfo&, bool value) { return static_cast<jboolean>(value);}
inline static jbyte convert(LocalRefMapType&, cocos2d::JniMethodInfo&, int8_t value) { return static_cast<jbyte>(value);}
inline static jchar convert(LocalRefMapType&, cocos2d::JniMethodInfo&, uint8_t value) { return static_cast<jchar>(value);}
inline static jshort convert(LocalRefMapType&, cocos2d::JniMethodInfo&, int16_t value) { return static_cast<jshort>(value);}
template <typename T>
static T convert(LocalRefMapType& localRefs, cocos2d::JniMethodInfo&, T x) {
return x;