Project

General

Profile

Actions

Optimization #6855

open

src: var code cleanups

Added by Victor Julien about 2 months ago. Updated about 1 month ago.

Status:
New
Priority:
Normal
Assignee:
Target version:
Effort:
Difficulty:
Label:

Description

GenericVar and related types use a field "type" which is 8 bits, but it is used to hold the sigmatch type, which is 16 bits. It's not currently causing issues, but needs to be cleaned up.

Actions #1

Updated by Philippe Antoine about 1 month ago

How come we did not have a compiler warning for this ?..

Actions #2

Updated by Philippe Antoine about 1 month ago

Philippe Antoine wrote in #note-1:

How come we did not have a compiler warning for this ?..

Looks like GenericVar type is never set by itself, but setting it in a FlowVar or such and then casting to this common struct...

Actions

Also available in: Atom PDF