Skip to content
This repository was archived by the owner on Jan 4, 2023. It is now read-only.
This repository was archived by the owner on Jan 4, 2023. It is now read-only.

Bug on 32-bit architectures #182

Open
@EML100

Description

@EML100

On GCC 8, Raspberry Pi 4 (ARM Cortex-A72) unsigned long is 32-bit. There are 6 calls to strtoul in BlueToothUUID.cpp, which are assumed to return 64 bits; the return values should be casted to uint64_t. gcc produces warnings for 3 of these calls (where the return value is incorrectly left-shifted by 32 or more bits).

On another note...

I think this is a great project, as I really don't want to start messing around with the undocumented BlueZ DBus API. OTOH, I don't think I'll get much further using it for the RPi (the C++ hellotinyb crashes, for example). I know this is the wrong place to ask, but can anyone suggest a replacement? There are a couple of other attempts at C++ APIs but I think they may be old and unmaintained. Or should I bite the bullet and try to figure out how to use BlueZ directly?

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