[MOAB-dev] commit/MOAB: danwu: Removed a warning (from buildbot output of builder moab-32bit) for Tqdcfr.cpp. This -Wsign-compare warning is only reproducible in a 32-bit moab build.

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Tue May 20 15:09:32 CDT 2014


1 new commit in MOAB:

https://bitbucket.org/fathomteam/moab/commits/fa13025fa861/
Changeset:   fa13025fa861
Branch:      master
User:        danwu
Date:        2014-05-20 22:09:19
Summary:     Removed a warning (from buildbot output of builder moab-32bit) for Tqdcfr.cpp. This -Wsign-compare warning is only reproducible in a 32-bit moab build.

Affected #:  1 file

diff --git a/src/io/Tqdcfr.cpp b/src/io/Tqdcfr.cpp
index 7416164..522bc55 100644
--- a/src/io/Tqdcfr.cpp
+++ b/src/io/Tqdcfr.cpp
@@ -2329,7 +2329,7 @@ ErrorCode Tqdcfr::read_acis_records( const char* sat_filename )
       
         // get next occurrence of '#' (record terminator)
       ret = strchr(&(char_buf[buf_pos]), '#');
-      while (ret && ret+1-&char_buf[0] < bytes_left && *(ret+1) != '\n')
+      while (ret && (unsigned int)(ret+1-&char_buf[0]) < bytes_left && *(ret+1) != '\n')
         ret = strchr(ret+1, '#');
       if (NULL != ret) {
           // grab the string (inclusive of the record terminator and the line feed) and complete the record

Repository URL: https://bitbucket.org/fathomteam/moab/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.


More information about the moab-dev mailing list