From a0132fc4e7237603f0cd861107ad6f8b0b884ce6 Mon Sep 17 00:00:00 2001 From: Bertrand Songis Date: Sat, 12 Mar 2016 19:20:31 +0100 Subject: [PATCH] More simulators in Companion --- radio/util/generate_datacopy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radio/util/generate_datacopy.py b/radio/util/generate_datacopy.py index 3fd09c08d..e770e9647 100644 --- a/radio/util/generate_datacopy.py +++ b/radio/util/generate_datacopy.py @@ -18,7 +18,7 @@ def build_struct(cursor): print(" copy%s(&dest->%s[i], &src->%s[i]);" % (c.type.get_array_element_type().spelling, c.spelling, c.spelling)) print(" }") else: - print(" memcpy(&dest->%s, &src->%s, sizeof(dest->%s));" % (c.spelling, c.spelling, c.spelling)) + print(" memcpy(dest->%s, src->%s, sizeof(dest->%s));" % (c.spelling, c.spelling, c.spelling)) elif c.type.get_declaration().spelling in structs: print(" copy%s(&dest->%s, &src->%s);" % (c.type.get_declaration().spelling, c.spelling, c.spelling)) else: