mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-09-02 15:02:51 +08:00
httpd: drop the byte-access justification from u32hex_html
Byte access instead of 32-bit shifts is how this codebase works everywhere, so the comment explained a house rule at one call site.
This commit is contained in:
@@ -546,8 +546,6 @@ static __xdata uint8_t * __xdata pi_mac;
|
||||
|
||||
static void u32hex_html(void)
|
||||
{
|
||||
/* byte access instead of uint32 shifts: sdcc/mcs51 expands each
|
||||
* 32-bit shift into a large helper sequence. Little-endian layout. */
|
||||
__xdata uint8_t *b = (__xdata uint8_t *)&pi_u32;
|
||||
byte_to_html(b[3]);
|
||||
byte_to_html(b[2]);
|
||||
|
||||
Reference in New Issue
Block a user