From e3f453c8652c5375d010cae44c43ad485baad062 Mon Sep 17 00:00:00 2001 From: Joshua Granick Date: Wed, 24 Jun 2015 16:24:21 -0700 Subject: [PATCH] Bytes fix --- project/src/utils/Bytes.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/project/src/utils/Bytes.cpp b/project/src/utils/Bytes.cpp index 36e7bd354..167037c0f 100644 --- a/project/src/utils/Bytes.cpp +++ b/project/src/utils/Bytes.cpp @@ -250,23 +250,23 @@ namespace lime { } - value object = alloc_empty_object (); + _value = alloc_empty_object (); if (_length > 0 && _data) { value newString = alloc_raw_string (_length); memcpy ((char*)val_string (newString), _data, _length); - alloc_field (object, id_b, newString); - alloc_field (object, id_length, alloc_int (_length)); + alloc_field (_value, id_b, newString); + alloc_field (_value, id_length, alloc_int (_length)); } else { - alloc_field (object, id_b, alloc_raw_string (0)); - alloc_field (object, id_length, alloc_int (_length)); + alloc_field (_value, id_b, alloc_raw_string (0)); + alloc_field (_value, id_length, alloc_int (_length)); } - return object; + return _value; }