Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

枚举变量非对齐访问问题 #99

Open
@tulumao

Description

@tulumao

在mattclient.h中,定义了枚举类型
typedef enum mqtt_qos {
QOS0 = 0,
QOS1 = 1,
QOS2 = 2,
SUBFAIL = 0x80
} mqtt_qos_t;
后面的代码中,对QoS有个指针强转,而enum的长度并不固定,有一定的概率引起非对齐访问的问题。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp