Skip to content
Snippets Groups Projects
Commit ea3cb185 authored by Brad King's avatar Brad King
Browse files

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.
parent fee93afa
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
......@@ -7,4 +7,4 @@ SET(KWSYS_DATE_STAMP_YEAR 2008)
SET(KWSYS_DATE_STAMP_MONTH 09)
# KWSys version date day component. Format is DD.
SET(KWSYS_DATE_STAMP_DAY 23)
SET(KWSYS_DATE_STAMP_DAY 26)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment