Skip to content

Commit 8008a8f

Browse files
Copilotithewei
andauthored
Fix typo: ENCODE_BY_LITTEL_ENDIAN → ENCODE_BY_LITTLE_ENDIAN
Agent-Logs-Url: https://github.com/ithewei/libhv/sessions/8e4ecff3-c8d8-43af-b29d-336c92e28c28 Co-authored-by: ithewei <26049660+ithewei@users.noreply.github.com>
1 parent 9ac85a6 commit 8008a8f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

event/hloop.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,11 +497,14 @@ typedef enum {
497497
// UNPACK_BY_LENGTH_FIELD
498498
typedef enum {
499499
ENCODE_BY_VARINT = 17, // 1 MSB + 7 bits
500-
ENCODE_BY_LITTEL_ENDIAN = LITTLE_ENDIAN, // 1234
500+
ENCODE_BY_LITTLE_ENDIAN = LITTLE_ENDIAN, // 1234
501501
ENCODE_BY_BIG_ENDIAN = BIG_ENDIAN, // 4321
502502
ENCODE_BY_ASN1 = 80, // asn1 decode int
503503
} unpack_coding_e;
504504

505+
// backward compatibility
506+
#define ENCODE_BY_LITTEL_ENDIAN ENCODE_BY_LITTLE_ENDIAN
507+
505508
typedef struct unpack_setting_s {
506509
unpack_mode_e mode;
507510
unsigned int package_max_length;

0 commit comments

Comments
 (0)