You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ah...@apache.org on 2018/08/09 22:24:32 UTC
[royale-asjs] branch feature/MXRoyale updated: try to fix build
This is an automated email from the ASF dual-hosted git repository.
aharui pushed a commit to branch feature/MXRoyale
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
The following commit(s) were added to refs/heads/feature/MXRoyale by this push:
new 311ada2 try to fix build
311ada2 is described below
commit 311ada2ce677789ccdf2497c00a5d932c7bba1e2
Author: Alex Harui <ah...@apache.org>
AuthorDate: Thu Aug 9 15:24:05 2018 -0700
try to fix build
---
.../src/main/royale/org/apache/royale/net/utils/RPCUIDUtil.as | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/frameworks/projects/Network/src/main/royale/org/apache/royale/net/utils/RPCUIDUtil.as b/frameworks/projects/Network/src/main/royale/org/apache/royale/net/utils/RPCUIDUtil.as
index 15cf2ad..4a148c0 100644
--- a/frameworks/projects/Network/src/main/royale/org/apache/royale/net/utils/RPCUIDUtil.as
+++ b/frameworks/projects/Network/src/main/royale/org/apache/royale/net/utils/RPCUIDUtil.as
@@ -103,7 +103,8 @@ package org.apache.royale.net.utils
UIDBuffer.writeByte(ALPHA_CHAR_CODES[int(Math.random() * 16)]);
}
- return UIDBuffer.toString();
+ UIDBuffer.position = 0;
+ return UIDBuffer.readUTFBytes(UIDBuffer.length);
}
/**
@@ -136,7 +137,8 @@ package org.apache.royale.net.utils
UIDBuffer.writeByte(ALPHA_CHAR_CODES[(b & 0xF0) >>> 4]);
UIDBuffer.writeByte(ALPHA_CHAR_CODES[(b & 0x0F)]);
}
- return UIDBuffer.toString();
+ UIDBuffer.position = 0;
+ return UIDBuffer.readUTFBytes(UIDBuffer.length);
}
return null;