Mercurial > pub > dyncall > dyncall
changeset 539:0c3f5355769d
- test code: dcmode setting order fix, test worked but was incorrect according to the definition/doc
author | Tassilo Philipp |
---|---|
date | Sun, 24 Apr 2022 13:48:59 +0200 |
parents | 35498b479505 |
children | 951cbfb5020a |
files | test/plain_c++/test_main.cc |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/test/plain_c++/test_main.cc Sun Apr 24 13:38:33 2022 +0200 +++ b/test/plain_c++/test_main.cc Sun Apr 24 13:48:59 2022 +0200 @@ -423,8 +423,8 @@ dcMode(pc, DC_CALL_C_DEFAULT_THIS); /* <-- needed on x64/win64 */ dcBeginCallAggr(pc, s); + dcArgPointer(pc, &o); dcMode(pc, DC_CALL_C_ELLIPSIS); - dcArgPointer(pc, &o); dcArgInt(pc, 89); dcMode(pc, DC_CALL_C_ELLIPSIS_VARARGS); dcArgInt(pc, -157);