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
955955 return SMSC9220_ERROR_INTERNAL ;
956956 }
957957
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 ) ;
964964
965965 return SMSC9220_ERROR_NONE ;
966966}
@@ -1223,7 +1223,7 @@ uint32_t smsc9220_peek_next_packet_size( const struct
12231223 }
12241224 else
12251225 {
1226- rx_status_from_peek = -1 ;
1226+ rx_status_from_peek = ( uint32_t ) -1 ;
12271227 }
12281228
12291229 return packet_size ;
You can’t perform that action at this time.
0 commit comments