Commit f21e5169 authored by Peter Eastman's avatar Peter Eastman
Browse files

Fixed compilation errors on Windows

parent 027fe028
......@@ -62,7 +62,7 @@ void testSerialization() {
force.addExclusion(1, 2);
vector<double> values(10);
for (int i = 0; i < 10; i++)
values[i] = sin(i);
values[i] = sin((double) i);
force.addFunction("f", values, 0.5, 1.5, true);
// Serialize and then deserialize it.
......
......@@ -65,7 +65,7 @@ void testSerialization() {
force.addExclusion(1, 2);
vector<double> values(10);
for (int i = 0; i < 10; i++)
values[i] = sin(i);
values[i] = sin((double) i);
force.addFunction("f", values, 0.5, 1.5, true);
// Serialize and then deserialize it.
......
......@@ -58,7 +58,7 @@ void testSerialization() {
force.addExclusion(1, 2);
vector<double> values(10);
for (int i = 0; i < 10; i++)
values[i] = sin(i);
values[i] = sin((double) i);
force.addFunction("f", values, 0.5, 1.5, true);
// Serialize and then deserialize it.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment