diff options
author | Toomas Soome <tsoome@FreeBSD.org> | 2020-12-01 22:28:02 +0000 |
---|---|---|
committer | Toomas Soome <tsoome@FreeBSD.org> | 2020-12-01 22:28:02 +0000 |
commit | dba7640e44c5ec148a84b0d58c6c9a3c9e5147f3 (patch) | |
tree | f001443310d88bd96d130096e22d65ba2bea1b08 /stand | |
parent | 71df6a153f042827f8bd261dbae9672d165c76df (diff) | |
download | src-test-dba7640e44c5ec148a84b0d58c6c9a3c9e5147f3.tar.gz src-test-dba7640e44c5ec148a84b0d58c6c9a3c9e5147f3.zip |
ficl: instead of pad, emit can use local variable
Pad in forth is used as "scratchpad" and internal implementations
should not use it. Ficl does not really follow this rule and this can fire back.
emit has no need to use pad, we can use local variable instead.
Notes
Notes:
svn path=/head/; revision=368261
Diffstat (limited to 'stand')
-rw-r--r-- | stand/ficl/words.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stand/ficl/words.c b/stand/ficl/words.c index 54257275d5cc4..3f781c6d2ff4f 100644 --- a/stand/ficl/words.c +++ b/stand/ficl/words.c @@ -1015,7 +1015,7 @@ static void twoSwap(FICL_VM *pVM) static void emit(FICL_VM *pVM) { - char *cp = pVM->pad; + char cp[2]; int i; #if FICL_ROBUST > 1 |