mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2026-10-07 06:07:11 +02:00
Don't compute string length twice.
This commit is contained in:
1 parent
d0c8dc3071
commit
7934b65de9
1 file changed
+2
-2
@@ -52,8 +52,8 @@ public:
|
||||
|
||||
static void Get(const SQChar* name, int args, string & out) {
|
||||
SQChar buf[16] = {'_', 'o'};
|
||||
I32ToA_(args, &buf[2]);
|
||||
out.append(buf);
|
||||
unsigned l = I32ToA(args, &buf[2]);
|
||||
out.append(buf, l);
|
||||
out.push_back('_');
|
||||
out.append(name);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user