We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e437be commit 5669726Copy full SHA for 5669726
source/portable/NetworkInterface/MPS2_AN385/ether_lan9118/smsc9220_eth_drv.c
@@ -958,7 +958,7 @@ enum smsc9220_error_t smsc9220_read_mac_address( const struct smsc9220_eth_dev_t
958
mac[ 0 ] = mac_low & 0xFF;
959
mac[ 1 ] = ( mac_low >> 8 ) & 0xFF;
960
mac[ 2 ] = ( mac_low >> 16 ) & 0xFF;
961
- mac[ 3 ] = ( mac_low >> 24 ) & 0xFF;
+ mac[ 3 ] = ( char ) ( ( mac_low >> 24 ) & 0xFF );
962
mac[ 4 ] = mac_high & 0xFF;
963
mac[ 5 ] = ( mac_high >> 8 ) & 0xFF;
964
@@ -1223,7 +1223,7 @@ uint32_t smsc9220_peek_next_packet_size( const struct
1223
}
1224
else
1225
{
1226
- rx_status_from_peek = -1;
+ rx_status_from_peek = ( uint32_t ) -1;
1227
1228
1229
return packet_size;
0 commit comments