about summary refs log tree commit diff stats
path: root/wrapperhelper/src/generator.c
diff options
context:
space:
mode:
authorrajdakin <rajdakin@gmail.com>2024-09-08 22:26:35 +0200
committerGitHub <noreply@github.com>2024-09-08 22:26:35 +0200
commit26b7a49d8279984a01ea5dc19b05cefff0693e35 (patch)
tree3ff9f05a2fb11b0e21ad7cf1829c5a9992ce7728 /wrapperhelper/src/generator.c
parentfa8a5a20336a64e5b53ea9a151c23941073381c4 (diff)
downloadbox64-26b7a49d8279984a01ea5dc19b05cefff0693e35.tar.gz
box64-26b7a49d8279984a01ea5dc19b05cefff0693e35.zip
[WRAPPERHELPER] Fixed preprocessor logic, moved type validation to machine (#1808)
Diffstat (limited to 'wrapperhelper/src/generator.c')
-rw-r--r--wrapperhelper/src/generator.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/wrapperhelper/src/generator.c b/wrapperhelper/src/generator.c
index e162d0e4..63102f48 100644
--- a/wrapperhelper/src/generator.c
+++ b/wrapperhelper/src/generator.c
@@ -626,7 +626,8 @@ VECTOR(references) *references_from_file(const char *filename, FILE *f) {
 			tok = pre_next_token(prep, 0);
 			if (tok.tokt == PPTOK_NUM) {
 				num_constant_t cst;
-				if (!num_constant_convert(tok.tokv.str, &cst)) {
+				// Assume target is 64 bits (box64)
+				if (!num_constant_convert(tok.tokv.str, &cst, 0)) {
 					printf("Error: invalid reference file: invalid DATA line %d (num conversion)\n", lineno);
 					string_del(req.obj_name);
 					preproc_token_del(&tok);