diff options
author | PikalaxALT <PikalaxALT@users.noreply.github.com> | 2019-10-02 09:18:48 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-02 09:18:48 -0400 |
commit | 9317d114a94f978548eb3d664e1bb325724d5ed8 (patch) | |
tree | 260825bffe542d3a4b4c057c5ed86fab5621945a /src/scrcmd.c | |
parent | 301822603ea19ee69b9bd64b266e51a8ed9b7c04 (diff) | |
parent | c5cb45991b65f7e4a5cfc39816a214085f740a7b (diff) |
Merge pull request #823 from GriffinRichards/constants-strconv
Use STR_CONV constants
Diffstat (limited to 'src/scrcmd.c')
-rw-r--r-- | src/scrcmd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/scrcmd.c b/src/scrcmd.c index 4c8895ab8..9861f9dae 100644 --- a/src/scrcmd.c +++ b/src/scrcmd.c @@ -1612,10 +1612,10 @@ bool8 ScrCmd_buffermovename(struct ScriptContext *ctx) bool8 ScrCmd_buffernumberstring(struct ScriptContext *ctx) { u8 stringVarIndex = ScriptReadByte(ctx); - u16 v1 = VarGet(ScriptReadHalfword(ctx)); - u8 v2 = CountDigits(v1); + u16 num = VarGet(ScriptReadHalfword(ctx)); + u8 numDigits = CountDigits(num); - ConvertIntToDecimalStringN(sScriptStringVars[stringVarIndex], v1, 0, v2); + ConvertIntToDecimalStringN(sScriptStringVars[stringVarIndex], num, STR_CONV_MODE_LEFT_ALIGN, numDigits); return FALSE; } |