Skip to content

static_assert(sizeof(qsbr_epoch_t) == 8, "expected 64-bit counter") #12

@clausecker

Description

@clausecker

This assertion checks if qsbr_epoch_t is a 64 bit type:

static_assert(sizeof(qsbr_epoch_t) == 8, "expected 64-bit counter")

However, the code defines qsbr_epoch_t to be of type

typedef unsigned long qsbr_epoch_t;

which may be a 32 bit type. Please change the code such that qsbr_epoch_t is instead a 64 bit type:

typedef unsigned long long qsbr_epoch_t;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions