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

Fix outstanding 32/64 warnings on Linux gcc+clang.

This commit is contained in:
Rene Rivera
2020-09-09 21:49:17 -05:00
parent 84666e77fa
commit 84dae08aa0
10 changed files with 32 additions and 49 deletions

View File

@@ -26,7 +26,7 @@ static void assert_invariants( string * self )
}
assert( self->size < self->capacity );
assert( ( self->capacity <= sizeof( self->opt ) ) == ( self->value == self->opt ) );
assert( ( self->capacity <= int32_t(sizeof( self->opt )) ) == ( self->value == self->opt ) );
assert( self->value[ self->size ] == 0 );
/* String objects modified manually after construction to contain embedded
* '\0' characters are considered structurally valid.
@@ -198,7 +198,7 @@ void string_unit_test()
for ( i = 0; i < limit; ++i )
{
string_push_back( s, (char)( i + 1 ) );
assert( s->size == i + 1 );
assert( s->size == int32_t(i + 1) );
}
assert( s->size == limit );
assert( s->value != s->opt );