Skip to content

Constant overflows for enum when building for armv7 #19

@divyanshupundir

Description

@divyanshupundir

First of all, I'd like to say that this is a really great library. Awesome work by the developers in making something that this well designed and is easy to use.

I used the dialect-import tool to generate my own dialect that uses common.xml

While building this for armv7 using:
GOOS=linux GOARCH=arm GOARM=7 go build

I got the following errors:

pkg/dialects/custom/enum_hil_sensor_updated_flags.go:41:5: constant 2147483648 overflows HIL_SENSOR_UPDATED_FLAGS
pkg/dialects/custom/enum_mav_sys_status_sensor.go:75:5: constant 2147483648 overflows MAV_SYS_STATUS_SENSOR

This is probably happening because dialect-import defines the enum constants as int over here. HIL_SENSOR_UPDATED_FLAGS are used as uint32_t in messages. This is probably creating problems for arm32 architecture.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions