celix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pnol...@apache.org
Subject celix git commit: CELIX-237: change struct assigment in ccputest.
Date Sat, 04 Jul 2015 16:19:04 GMT
Repository: celix
Updated Branches:
  refs/heads/feature/CELIX-237_rsa-ffi 36bd57740 -> 04c384714


CELIX-237: change struct assigment in ccputest.


Project: http://git-wip-us.apache.org/repos/asf/celix/repo
Commit: http://git-wip-us.apache.org/repos/asf/celix/commit/04c38471
Tree: http://git-wip-us.apache.org/repos/asf/celix/tree/04c38471
Diff: http://git-wip-us.apache.org/repos/asf/celix/diff/04c38471

Branch: refs/heads/feature/CELIX-237_rsa-ffi
Commit: 04c384714c628a64a0cebe9075b63fd285297b7e
Parents: 36bd577
Author: Pepijn Noltes <pepijnnoltes@gmail.com>
Authored: Sat Jul 4 18:18:13 2015 +0200
Committer: Pepijn Noltes <pepijnnoltes@gmail.com>
Committed: Sat Jul 4 18:18:13 2015 +0200

----------------------------------------------------------------------
 .../dynamic_function_interface/tst/dyn_closure_tests.cpp        | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/celix/blob/04c38471/remote_services/dynamic_function_interface/tst/dyn_closure_tests.cpp
----------------------------------------------------------------------
diff --git a/remote_services/dynamic_function_interface/tst/dyn_closure_tests.cpp b/remote_services/dynamic_function_interface/tst/dyn_closure_tests.cpp
index 30b0b65..c3ea1de 100644
--- a/remote_services/dynamic_function_interface/tst/dyn_closure_tests.cpp
+++ b/remote_services/dynamic_function_interface/tst/dyn_closure_tests.cpp
@@ -100,7 +100,10 @@ static void tests() {
         double (*func)(int32_t a, struct example2_arg2 b, int32_t c) = NULL;
         rc = dynClosure_getFnPointer(dynClosure, (void(**)(void))&func);
         CHECK_EQUAL(0, rc);
-        struct example2_arg2 b = { .val1 = 1.0, .val2 = 1.5, .val3 = 2.0 };
+        struct example2_arg2 b;
+        b.val1 = 1.0;
+        b.val2 = 1.5;
+        b.val3 = 2.0;
         double ret = func(2,b,4);
         printf("Return value for example2 is %f\n", ret);
         CHECK_EQUAL(2, g_count);


Mime
View raw message