Reimplement PR 227 with fixed tests.

This commit is contained in:
Mark VanderVoord
2019-07-06 12:11:56 -04:00
parent 99c2223a1d
commit 5eab75a078
4 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -73,7 +73,7 @@ class CMockGeneratorUtils
if (arg[:ptr?] or @treat_as.include?(arg[:type]))
" #{dest} = #{arg[:name]};\n"
else
" memcpy(&#{dest}, &#{arg[:name]}, sizeof(#{arg[:type]}));\n"
" memcpy((void*)(&#{dest}), (void*)(&#{arg[:name]}), sizeof(#{arg[:type]}));\n"
end
end