summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-09-26 12:24:15 (GMT)
committerBrad King <brad.king@kitware.com>2008-09-26 12:24:15 (GMT)
commit97c7c86898cde67d60d445fe3f6006544ebe5ea2 (patch)
tree0a546bcc9d3885951a5dec95dc89113de4ac8090
parent1f33e26efc5a81601cd452d7fa1ed5134afbfeaf (diff)
downloadCMake-97c7c86898cde67d60d445fe3f6006544ebe5ea2.zip
CMake-97c7c86898cde67d60d445fe3f6006544ebe5ea2.tar.gz
CMake-97c7c86898cde67d60d445fe3f6006544ebe5ea2.tar.bz2
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.
-rw-r--r--Source/kwsys/SharedForward.h.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/kwsys/SharedForward.h.in b/Source/kwsys/SharedForward.h.in
index 6dde3b9..388470d 100644
--- a/Source/kwsys/SharedForward.h.in
+++ b/Source/kwsys/SharedForward.h.in
@@ -329,7 +329,7 @@ static void kwsys_shared_forward_dirname(const char* begin, char* result)
{
if(*end == '/' || *end == '\\')
{
- last_slash_index = end-begin;
+ last_slash_index = (int)(end-begin);
}
}
@@ -428,7 +428,7 @@ static int kwsys_shared_forward_self_path(const char* argv0, char* result)
if(first < last)
{
/* Determine the length without trailing slash. */
- int length = last-first;
+ int length = (int)(last-first);
if(*(last-1) == '/' || *(last-1) == '\\')
{
--length;