Convert tests to valid C++ code
authorIvan Maidanski <ivmai@mail.ru>
Thu, 8 Feb 2018 22:12:27 +0000 (01:12 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 5 Mar 2018 21:36:06 +0000 (00:36 +0300)
commit2f1158cecd37ca8f1c635d0f9d8e99f1980b0cea
tree4aec639633debf2bebb6c0c9963ec2a76d4c2b67
parent35281c2dc04d606e721cb69c4724546c10ef036b
Convert tests to valid C++ code

* tests/test_malloc.c (cons, dummy_test, run_one_test): Add explicit
cast of void* pointer (returned by malloc) to the type of the variable
the pointer is assigned to.
* tests/test_stack.c (add_elements): Likewise.
tests/test_malloc.c
tests/test_stack.c