projects
/
ulas
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3faac15
)
Added test for .set
author
Lukas Krickl
<lukas@krickl.dev>
Mon, 4 Dec 2023 13:54:42 +0000
(14:54 +0100)
committer
Lukas Krickl
<lukas@krickl.dev>
Mon, 4 Dec 2023 13:54:42 +0000
(14:54 +0100)
src/ulas.c
patch
|
blob
|
history
tests/t0.bin
patch
|
blob
|
history
diff --git
a/src/ulas.c
b/src/ulas.c
index 094749b448da48fb3151890e288d2f027c5f4d4d..9f2aaa21175f6436b02da0838299b2b164c44f85 100644
(file)
--- a/
src/ulas.c
+++ b/
src/ulas.c
@@
-2071,7
+2071,6
@@
int ulas_asmdirset(const char **line, unsigned long n) {
int rc = 0;
union ulas_val val = {0};
- struct ulas_tok tok = {t, val};
switch (t) {
case ULAS_INT:
val.intv = ulas_intexpr(line, n, &rc);
@@
-2085,6
+2084,7
@@
int ulas_asmdirset(const char **line, unsigned long n) {
ULASERR("Unexpected type\n");
return -1;
}
+ struct ulas_tok tok = {t, val};
if (ulas.pass == ULAS_PASS_FINAL) {
// only really define in final pass
diff --git
a/tests/t0.bin
b/tests/t0.bin
index 6cc563080404cd5752569e190cee7b2f8ade0e9e..739357a260773e6b2129410b5613072d852fe917 100644
(file)
Binary files a/tests/t0.bin and b/tests/t0.bin differ