[Cmake-commits] [cmake-commits] king committed SharedForward.h.in 1.7 1.8
cmake-commits at cmake.org
cmake-commits at cmake.org
Fri Sep 26 08:24:17 EDT 2008
Update of /cvsroot/CMake/CMake/Source/kwsys
In directory public:/mounts/ram/cvs-serv22428/Source/kwsys
Modified Files:
SharedForward.h.in
Log Message:
COMP: Avoid 64-to-32-bit integer conversion warning
In SharedForward we are only dealing with command-line-length strings so we
need not worry about integer overflow.
Index: SharedForward.h.in
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/kwsys/SharedForward.h.in,v
retrieving revision 1.7
retrieving revision 1.8
diff -C 2 -d -r1.7 -r1.8
*** SharedForward.h.in 8 Jan 2007 20:12:00 -0000 1.7
--- SharedForward.h.in 26 Sep 2008 12:24:15 -0000 1.8
***************
*** 330,334 ****
if(*end == '/' || *end == '\\')
{
! last_slash_index = end-begin;
}
}
--- 330,334 ----
if(*end == '/' || *end == '\\')
{
! last_slash_index = (int)(end-begin);
}
}
***************
*** 429,433 ****
{
/* Determine the length without trailing slash. */
! int length = last-first;
if(*(last-1) == '/' || *(last-1) == '\\')
{
--- 429,433 ----
{
/* Determine the length without trailing slash. */
! int length = (int)(last-first);
if(*(last-1) == '/' || *(last-1) == '\\')
{
More information about the Cmake-commits
mailing list