diff options
| author | grischka <grischka> | 2017-04-25 21:01:54 +0200 |
|---|---|---|
| committer | grischka <grischka> | 2017-04-25 21:01:54 +0200 |
| commit | 7acf9aa86275a24b468786d6ea9f308ae33f011c (patch) | |
| tree | 5bc1c65e4a894185de1d45456d662e7b1297fa25 /tccasm.c | |
| parent | fb4f57666cf23aa94d6ef421383013e6a0dc12cc (diff) | |
| download | tinycc-7acf9aa86275a24b468786d6ea9f308ae33f011c.tar.gz tinycc-7acf9aa86275a24b468786d6ea9f308ae33f011c.tar.bz2 | |
final adjustments for release
- configure/Makefiles: minor adjustments
- build-tcc.bat: add -static to gcc options
(avoids libgcc_s*.dll dependency with some mingw versions)
- tccpe.c/tcctools.c: eliminate MAX_PATH
(not available for cross compilers)
- tccasm.c: use uint64_t/strtoull in unary()
(unsigned long sometimes is only uint32_t, as always on windows)
- tccgen.c: Revert (f077d16c) "tccgen: gen_cast: cast FLOAT to DOUBLE"
Was a rather experimental, tentative commit, not really necessary
and somewhat ugly too.
- cleanup recent osx support:
- Makefile/libtcc.c: cleanup copy&paste code
- tccpp.c: restore deleted function
Diffstat (limited to 'tccasm.c')
| -rw-r--r-- | tccasm.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -87,13 +87,13 @@ static void asm_expr_unary(TCCState *s1, ExprValue *pe) { Sym *sym; int op, label; - unsigned long n; + uint64_t n; const char *p; switch(tok) { case TOK_PPNUM: p = tokc.str.data; - n = strtoul(p, (char **)&p, 0); + n = strtoull(p, (char **)&p, 0); if (*p == 'b' || *p == 'f') { /* backward or forward label */ label = asm_get_local_label_name(s1, n); |
