File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ class small_mapt
146
146
if (n == 0 )
147
147
return nullptr ;
148
148
149
- T *mem = (T *)realloc (ptr, sizeof (T) * n);
149
+ T *mem = (T *)realloc (( char *) ptr, sizeof (T) * n);
150
150
151
151
if (!mem)
152
152
throw std::bad_alloc ();
@@ -486,7 +486,7 @@ class small_mapt
486
486
std::size_t n = size ();
487
487
if (ii < n - 1 )
488
488
{
489
- memmove (p + ii, p + ii + 1 , sizeof (T) * (n - ii - 1 ));
489
+ memmove (( char *)( p + ii) , p + ii + 1 , sizeof (T) * (n - ii - 1 ));
490
490
}
491
491
492
492
p = allocate (p, n - 1 );
Original file line number Diff line number Diff line change @@ -2245,7 +2245,7 @@ namespace Catch {
2245
2245
static_cast <void >(expr); \
2246
2246
__catchResult.captureResult ( Catch::ResultWas::DidntThrowException ); \
2247
2247
} \
2248
- catch ( exceptionType ) { \
2248
+ catch ( const exceptionType & ) { \
2249
2249
__catchResult.captureResult ( Catch::ResultWas::Ok ); \
2250
2250
} \
2251
2251
catch ( ... ) { \
You can’t perform that action at this time.
0 commit comments