diff options
author | est31 <MTest31@outlook.com> | 2015-11-24 05:06:45 +0100 |
---|---|---|
committer | est31 <MTest31@outlook.com> | 2015-11-24 05:11:39 +0100 |
commit | a23e29ab36244214cc9f2c8eb28521a3c9a4a651 (patch) | |
tree | 3ed730c7b5cc06b7542b89904f4a2f662264802c | |
parent | 1ac7d4fc77e6157a8db78aa3c9f82342f72c5bb7 (diff) |
Correct retvals of String::to_ascii() and String::to_utf8()
Both return RawArray, not String.
My fault from commit f83f96cb44a5c4f65c6271d0a98606b489adc488.
-rw-r--r-- | core/variant_call.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/variant_call.cpp b/core/variant_call.cpp index 51d683f1fe..48c38f05f9 100644 --- a/core/variant_call.cpp +++ b/core/variant_call.cpp @@ -1291,8 +1291,8 @@ _VariantCall::addfunc(Variant::m_vtype,Variant::m_ret,_SCS(#m_method),VCALL(m_cl ADDFUNC1(STRING,STRING,String,pad_decimals,INT,"digits",varray()); ADDFUNC1(STRING,STRING,String,pad_zeros,INT,"digits",varray()); - ADDFUNC0(STRING,STRING,String,to_ascii,varray()); - ADDFUNC0(STRING,STRING,String,to_utf8,varray()); + ADDFUNC0(STRING,RAW_ARRAY,String,to_ascii,varray()); + ADDFUNC0(STRING,RAW_ARRAY,String,to_utf8,varray()); ADDFUNC0(VECTOR2,VECTOR2,Vector2,normalized,varray()); |