Merge branch 'master' of github.com:FreeCAD/FreeCAD

This commit is contained in:
Yorik van Havre
2015-09-01 10:47:47 -03:00
10 changed files with 64 additions and 27 deletions

View File

@@ -1,5 +1,5 @@
if(MSVC)
add_definitions(-DHAVE_ACOSH -DHAVE_ASINH -DHAVE_ATANH)
add_definitions(-DHAVE_ACOSH -DHAVE_ASINH -DHAVE_ATANH -D_CRT_SECURE_NO_WARNINGS)
else(MSVC)
add_definitions(-DHAVE_LIMITS_H -DHAVE_CONFIG_H)
endif(MSVC)

View File

@@ -37,6 +37,10 @@
# define BaseExport
#endif
#ifdef _MSC_VER
# pragma warning(disable : 4275)
#endif
#ifdef _PreComp_
// standard

View File

@@ -1419,10 +1419,10 @@ void CDxfRead::get_line()
m_ifs->getline(m_str, 1024);
char str[1024];
int len = strlen(m_str);
size_t len = strlen(m_str);
int j = 0;
bool non_white_found = false;
for(int i = 0; i<len; i++){
for(size_t i = 0; i<len; i++){
if(non_white_found || (m_str[i] != ' ' && m_str[i] != '\t')){
if(m_str[i] != '\r')
{