aboutsummaryrefslogtreecommitdiff
path: root/tccpe.c
diff options
context:
space:
mode:
authorgrischka <grischka>2014-01-21 13:25:14 +0100
committergrischka <grischka>2014-01-21 13:25:14 +0100
commit32a4962593d6a2006cdd725480124717e7f5377d (patch)
tree7877f3007801368adb89e971e6f007908eb5b83f /tccpe.c
parent48ad93983f292b0eab62b8d8cce2abcb50e4701d (diff)
downloadtinycc-32a4962593d6a2006cdd725480124717e7f5377d.tar.gz
tinycc-32a4962593d6a2006cdd725480124717e7f5377d.tar.bz2
tcctest: add back testXb (self compile with -b)
- Thanks to Kirill "tcc -b itself" should work now (was removed in d5f4df09ff4a84dda5b03525285f03be7723376b) Also: - tests/Makefile: - fix spurious --I from 767410b8750b45d63805b45ca1a2cf34d7cb4923 - lookup boundtest.c via VPATH (for out-of-tree build) - test[123]b?: fail on diff error - Windows: test3 now works (from e31579b0769e1f9c0947d12e83316d1149307b1a) - abitest: a libtcc.a made by gcc is not usable for tcc on WIndows - using source instead (libtcc.c) - tccpe: - avoid gcc warning (x86_64)
Diffstat (limited to 'tccpe.c')
-rw-r--r--tccpe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tccpe.c b/tccpe.c
index ed7cb82..f4a58f7 100644
--- a/tccpe.c
+++ b/tccpe.c
@@ -1803,7 +1803,7 @@ static void pe_add_runtime(TCCState *s1, struct pe_info *pe)
s1->runtime_main = start_symbol;
#endif
} else {
- pe->start_addr = (DWORD)tcc_get_symbol_err(s1, start_symbol);
+ pe->start_addr = (DWORD)(uintptr_t)tcc_get_symbol_err(s1, start_symbol);
}
pe->type = pe_type;