Skip to content

[Bug] Build fails on 32-bit platforms: overflow in expression; result is -64771072 with type 'long' #449

Description

@yurivict

Search before asking

  • I searched in the issues and found nothing similar.

Version

3.6.0

Minimal reproduce step

build on 32-bit platform

What did you expect to see?

n/a

What did you see instead?

In file included from /wrkdirs/usr/ports/net-p2p/pulsar-client-cpp/work/pulsar-client-cpp-3.6.0/lib/ClientConfiguration.cc:22:
/wrkdirs/usr/ports/net-p2p/pulsar-client-cpp/work/pulsar-client-cpp-3.6.0/lib/ClientConfigurationImpl.h:33:65: error: overflow in expression; result is -64771072 with type 'long' [-Werror,-Winteger-overflow]
   33 |     std::chrono::nanoseconds operationTimeout{30L * 1000 * 1000 * 1000};
      |                                               ~~~~~~~~~~~~~~~~~~^~~~~~
/wrkdirs/usr/ports/net-p2p/pulsar-client-cpp/work/pulsar-client-cpp-3.6.0/lib/ClientConfigurationImpl.h:33:65: error: overflow in expression; result is -64771072 with type 'long' [-Werror,-Winteger-overflow]
   33 |     std::chrono::nanoseconds operationTimeout{30L * 1000 * 1000 * 1000};
      |                                               ~~~~~~~~~~~~~~~~~~^~~~~~
2 errors generated.

Anything else?

log

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions