Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
3a80b0f1
Commit
3a80b0f1
authored
Feb 06, 2015
by
peastman
Browse files
Merge pull request #799 from chrisdembia/vs2013-lepton-warnings
Fixes vs2013 warnings 4251, 4267 in lepton.
parents
83ed602e
de927414
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
libraries/lepton/include/lepton/windowsIncludes.h
libraries/lepton/include/lepton/windowsIncludes.h
+4
-4
libraries/lepton/src/CompiledExpression.cpp
libraries/lepton/src/CompiledExpression.cpp
+2
-2
No files found.
libraries/lepton/include/lepton/windowsIncludes.h
View file @
3a80b0f1
...
@@ -25,10 +25,10 @@
...
@@ -25,10 +25,10 @@
#ifdef _MSC_VER
#ifdef _MSC_VER
// We don't want to hear about how sprintf is "unsafe".
// We don't want to hear about how sprintf is "unsafe".
#pragma warning(disable:4996)
#pragma warning(disable:4996)
#if defined(LEPTON_BUILDING_SHARED_LIBRARY)
#define LEPTON_EXPORT __declspec(dllexport)
// Keep MS VC++ quiet about lack of dll export of private members.
// Keep MS VC++ quiet about lack of dll export of private members.
#pragma warning(disable:4251)
#pragma warning(disable:4251)
#if defined(LEPTON_BUILDING_SHARED_LIBRARY)
#define LEPTON_EXPORT __declspec(dllexport)
#elif defined(LEPTON_BUILDING_STATIC_LIBRARY) || defined(LEPTON_USE_STATIC_LIBRARIES)
#elif defined(LEPTON_BUILDING_STATIC_LIBRARY) || defined(LEPTON_USE_STATIC_LIBRARIES)
#define LEPTON_EXPORT
#define LEPTON_EXPORT
#else
#else
...
...
libraries/lepton/src/CompiledExpression.cpp
View file @
3a80b0f1
...
@@ -121,7 +121,7 @@ void CompiledExpression::compileExpression(const ExpressionTreeNode& node, vecto
...
@@ -121,7 +121,7 @@ void CompiledExpression::compileExpression(const ExpressionTreeNode& node, vecto
arguments
[
stepIndex
]
=
args
;
arguments
[
stepIndex
]
=
args
;
}
}
}
}
temps
.
push_back
(
make_pair
(
node
,
workspace
.
size
()));
temps
.
push_back
(
make_pair
(
node
,
(
int
)
workspace
.
size
()));
workspace
.
push_back
(
0.0
);
workspace
.
push_back
(
0.0
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment