2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-15 13:02:11 +00:00

64/32 bit compile working by using int32 types as needed.

This commit is contained in:
René Ferdinand Rivera Morell
2020-09-09 09:46:08 -05:00
parent 210cef7ae2
commit 84666e77fa
40 changed files with 590 additions and 603 deletions

View File

@@ -94,11 +94,11 @@ void path_get_temp_path_( string * buffer )
* - path_key_cache path/key mapping cache object already initialized
*/
static int canonicWindowsPath( char const * const path, size_t path_length,
static int canonicWindowsPath( char const * const path, int32_t path_length,
string * const out )
{
char const * last_element;
size_t saved_size;
int32_t saved_size;
char const * p;
int missing_parent;
@@ -138,7 +138,7 @@ static int canonicWindowsPath( char const * const path, size_t path_length,
if ( p >= path )
{
char const * const dir = path;
const size_t dir_length = p - path;
const int32_t dir_length = int32_t(p - path);
OBJECT * const dir_obj = object_new_range( dir, dir_length );
int found;
path_key_entry * const result = (path_key_entry *)hash_insert(
@@ -170,7 +170,7 @@ static int canonicWindowsPath( char const * const path, size_t path_length,
if ( !missing_parent )
{
char const * const n = last_element;
size_t n_length = path + path_length - n;
int32_t n_length = int32_t(path + path_length - n);
if ( !( n_length == 1 && n[ 0 ] == '.' )
&& !( n_length == 2 && n[ 0 ] == '.' && n[ 1 ] == '.' ) )
{
@@ -239,7 +239,7 @@ static path_key_entry * path_key( OBJECT * const path,
if ( !found )
{
OBJECT * normalized;
size_t normalized_size;
int32_t normalized_size;
path_key_entry * nresult;
result->path = path;
{