Merge pull request #6733 from Cruel/patch-1
Use int consistently instead of int32_t for Vectors
This commit is contained in:
commit
c7ea842416
2 changed files with 5 additions and 5 deletions
|
@ -516,7 +516,7 @@ MainLoop* test() {
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
Vector<int32_t> hashes;
|
Vector<int> hashes;
|
||||||
List<StringName> tl;
|
List<StringName> tl;
|
||||||
ObjectTypeDB::get_type_list(&tl);
|
ObjectTypeDB::get_type_list(&tl);
|
||||||
|
|
||||||
|
|
|
@ -1177,16 +1177,16 @@ Error VariantParser::parse_value(Token& token,Variant &value,Stream *p_stream,in
|
||||||
|
|
||||||
} else if (id=="IntArray") {
|
} else if (id=="IntArray") {
|
||||||
|
|
||||||
Vector<int32_t> args;
|
Vector<int> args;
|
||||||
Error err = _parse_construct<int32_t>(p_stream,args,line,r_err_str);
|
Error err = _parse_construct<int>(p_stream,args,line,r_err_str);
|
||||||
if (err)
|
if (err)
|
||||||
return err;
|
return err;
|
||||||
|
|
||||||
DVector<int32_t> arr;
|
DVector<int> arr;
|
||||||
{
|
{
|
||||||
int len=args.size();
|
int len=args.size();
|
||||||
arr.resize(len);
|
arr.resize(len);
|
||||||
DVector<int32_t>::Write w = arr.write();
|
DVector<int>::Write w = arr.write();
|
||||||
for(int i=0;i<len;i++) {
|
for(int i=0;i<len;i++) {
|
||||||
w[i]=int(args[i]);
|
w[i]=int(args[i]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue