swig/swig-1.3.32-testsuite-warnings.patch

16 lines
417 B
Diff

---
Examples/test-suite/template_array_numeric.i | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- Examples/test-suite/template_array_numeric.i.orig
+++ Examples/test-suite/template_array_numeric.i
@@ -8,7 +8,7 @@ class Arrayf
float a[Len];
public:
Arrayf() {}
- Arrayf(const float l[Len]) { };
+ Arrayf(const float l[Len]) { memcpy((void*)a, (void*)l, sizeof(a)); };
};
template <int Len>