diff options
| author | Thomas Preud'homme <robotux@celest.fr> | 2014-02-04 20:54:28 +0800 |
|---|---|---|
| committer | Thomas Preud'homme <robotux@celest.fr> | 2014-02-04 20:55:24 +0800 |
| commit | 17314a1fb316eb712ae0c539ccea64fe1aeb5c93 (patch) | |
| tree | 41d9f2444d32627250bb54f49ca0c767f811c8e5 /tccgen.c | |
| parent | 4e5f15c6851c69c4cc5da18209218eb918dbee77 (diff) | |
| download | tinycc-17314a1fb316eb712ae0c539ccea64fe1aeb5c93.tar.gz tinycc-17314a1fb316eb712ae0c539ccea64fe1aeb5c93.tar.bz2 | |
Fix parameter passing of long long bitfield
Diffstat (limited to 'tccgen.c')
| -rw-r--r-- | tccgen.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -3490,6 +3490,9 @@ static void gfunc_param_typed(Sym *func, Sym *arg) if ((vtop->type.t & VT_BTYPE) == VT_FLOAT) { type.t = VT_DOUBLE; gen_cast(&type); + } else if (vtop->type.t & VT_BITFIELD) { + type.t = vtop->type.t & (VT_BTYPE | VT_UNSIGNED); + gen_cast(&type); } } else if (arg == NULL) { tcc_error("too many arguments to function"); |
