History

Fix parameter passing of long long bitfield

Thomas Preud'homme committed 12 years ago

Commit 17314a11 parent 4e5f15c2 files · +4 −0Browse files

Unified · Split

2 files
  1. Changelog +1 −0
  2. tccgen.c +3 −0
Changelog+1−0
@@ -66,6 +66,7 @@ Bug fixes: · 65 unmodified lines
66- use libtcc for static linking with runtime library (Thomas Preud'homme)66- use libtcc for static linking with runtime library (Thomas Preud'homme)
67- fix negation of 0.0 and -0.0 values (Thomas Preud'homme)67- fix negation of 0.0 and -0.0 values (Thomas Preud'homme)
68- fix integer to double conversion on ARM (Thomas Preud'homme)68- fix integer to double conversion on ARM (Thomas Preud'homme)
69- fix parameter passing of (unsigned) long long bitfield (Thomas Preud'homme)
69 70
70version 0.9.26:71version 0.9.26:
71 72
tccgen.c+3−0
@@ -3490,6 +3490,9 @@ static void gfunc_param_typed(Sym *func, Sym *arg) · 3489 unmodified lines
3490 if ((vtop->type.t & VT_BTYPE) == VT_FLOAT) {3490 if ((vtop->type.t & VT_BTYPE) == VT_FLOAT) {
3491 type.t = VT_DOUBLE;3491 type.t = VT_DOUBLE;
3492 gen_cast(&type);3492 gen_cast(&type);
3493 } else if (vtop->type.t & VT_BITFIELD) {
3494 type.t = vtop->type.t & (VT_BTYPE | VT_UNSIGNED);
3495 gen_cast(&type);
3493 }3496 }
3494 } else if (arg == NULL) {3497 } else if (arg == NULL) {
3495 tcc_error("too many arguments to function");3498 tcc_error("too many arguments to function");

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t