File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
source/portable/NetworkInterface/MPS2_AN385/ether_lan9118 Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -955,12 +955,12 @@ enum smsc9220_error_t smsc9220_read_mac_address( const struct smsc9220_eth_dev_t
955
955
return SMSC9220_ERROR_INTERNAL ;
956
956
}
957
957
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 ;
962
- mac [ 4 ] = mac_high & 0xFF ;
963
- mac [ 5 ] = ( mac_high >> 8 ) & 0xFF ;
958
+ mac [ 0 ] = ( char ) ( mac_low & 0xFF ) ;
959
+ mac [ 1 ] = ( char ) ( ( mac_low >> 8 ) & 0xFF ) ;
960
+ mac [ 2 ] = ( char ) ( ( mac_low >> 16 ) & 0xFF ) ;
961
+ mac [ 3 ] = ( char ) ( ( mac_low >> 24 ) & 0xFF ) ;
962
+ mac [ 4 ] = ( char ) ( mac_high & 0xFF ) ;
963
+ mac [ 5 ] = ( char ) ( ( mac_high >> 8 ) & 0xFF ) ;
964
964
965
965
return SMSC9220_ERROR_NONE ;
966
966
}
@@ -1223,7 +1223,7 @@ uint32_t smsc9220_peek_next_packet_size( const struct
1223
1223
}
1224
1224
else
1225
1225
{
1226
- rx_status_from_peek = -1 ;
1226
+ rx_status_from_peek = ( uint32_t ) -1 ;
1227
1227
}
1228
1228
1229
1229
return packet_size ;
You can’t perform that action at this time.
0 commit comments