Skip to content
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -958,7 +958,7 @@ enum smsc9220_error_t smsc9220_read_mac_address( const struct smsc9220_eth_dev_t
mac[ 0 ] = mac_low & 0xFF;
mac[ 1 ] = ( mac_low >> 8 ) & 0xFF;
mac[ 2 ] = ( mac_low >> 16 ) & 0xFF;
Copy link
Member

@kar-rahul-aws kar-rahul-aws Apr 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason why the other mac indices are not typecasted to char.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe byte ordering issues on some architectures could make a difference?

best regards,

Florian La Roche

mac[ 3 ] = ( mac_low >> 24 ) & 0xFF;
mac[ 3 ] = ( char ) ( ( mac_low >> 24 ) & 0xFF );
mac[ 4 ] = mac_high & 0xFF;
mac[ 5 ] = ( mac_high >> 8 ) & 0xFF;

Expand Down Expand Up @@ -1223,7 +1223,7 @@ uint32_t smsc9220_peek_next_packet_size( const struct
}
else
{
rx_status_from_peek = -1;
rx_status_from_peek = ( uint32_t ) -1;
}

return packet_size;
Expand Down