Skip to content
This repository has been archived by the owner on Oct 28, 2021. It is now read-only.

HashedExpression class needs null check or variable needs default value. #5916

Open
Patrick-Gourdet opened this issue Nov 4, 2020 · 0 comments

Comments

@Patrick-Gourdet
Copy link

`// An expression with a cached hash value

struct HashedExpression {

Expression* expr;
// This variable was throwing an error on build.
size_t hash = 0; // I just initialized it to 0 but a null check would be more elegant.
`

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant