mirror of
https://github.com/boostorg/build.git
synced 2026-02-23 15:42:14 +00:00
64/32 bit compile working by using int32 types as needed.
This commit is contained in:
@@ -74,12 +74,12 @@ void argv_from_shell( char const * * argv, LIST * shell, char const * command,
|
||||
/* Returns whether the given command string contains lines longer than the given
|
||||
* maximum.
|
||||
*/
|
||||
int check_cmd_for_too_long_lines( char const * command, size_t max,
|
||||
size_t * const error_length, size_t * const error_max_length )
|
||||
int check_cmd_for_too_long_lines( char const * command, int32_t max,
|
||||
int32_t * const error_length, int32_t * const error_max_length )
|
||||
{
|
||||
while ( *command )
|
||||
{
|
||||
size_t const l = strcspn( command, "\n" );
|
||||
int32_t const l = int32_t(strcspn( command, "\n" ));
|
||||
if ( l > max )
|
||||
{
|
||||
*error_length = l;
|
||||
|
||||
Reference in New Issue
Block a user