summaryrefslogtreecommitdiff
path: root/libre/newton-dynamics-libre/assert-fix.patch
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@lavabit.com>2013-06-29 01:11:33 -0300
committerAndré Fabian Silva Delgado <emulatorman@lavabit.com>2013-06-29 01:11:33 -0300
commit7ad7c3a0866ffa1e8b40e908c0cf4309a46ebed1 (patch)
tree14f86e2c547e81eff581fb667bc8d72523cf8dc3 /libre/newton-dynamics-libre/assert-fix.patch
parentdd0ca4cf619119415c81395613929ede28021823 (diff)
downloadabslibre-7ad7c3a0866ffa1e8b40e908c0cf4309a46ebed1.tar.gz
abslibre-7ad7c3a0866ffa1e8b40e908c0cf4309a46ebed1.tar.bz2
abslibre-7ad7c3a0866ffa1e8b40e908c0cf4309a46ebed1.zip
newton-dynamics-libre: add new package to libre repo
NOTE: unar can uncompress source code perfectly, but source code is very old to compile against our packages, that package was compiled in Arch around 2011. So is necessary put patches to compile it against our lastest gcc.
Diffstat (limited to 'libre/newton-dynamics-libre/assert-fix.patch')
-rw-r--r--libre/newton-dynamics-libre/assert-fix.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/libre/newton-dynamics-libre/assert-fix.patch b/libre/newton-dynamics-libre/assert-fix.patch
new file mode 100644
index 000000000..83dfdd790
--- /dev/null
+++ b/libre/newton-dynamics-libre/assert-fix.patch
@@ -0,0 +1,13 @@
+Index: source/core/dgTypes.cpp
+===================================================================
+--- source/core/dgTypes.cpp (revision 506)
++++ source/core/dgTypes.cpp (working copy)
+@@ -515,7 +515,7 @@
+ return 0;
+ }
+ _ASSERTE (compareCount <= dgInt32 (strideInBytes / sizeof (dgFloat64)));
+- _ASSERT (strideInBytes == dgInt32 (sizeof (dgFloat64) * (strideInBytes / sizeof (dgFloat64))));
++ _ASSERTE (strideInBytes == dgInt32 (sizeof (dgFloat64) * (strideInBytes / sizeof (dgFloat64))));
+
+ dgInt32 stride = strideInBytes / dgInt32 (sizeof (dgFloat64));
+ dgInt32 stride2 = stride + 2;