Skip to content

Conversation

ybainier
Copy link

Some IPv4 addresses could not be found in IOWorker::PoolMap instance because Address::compare() method was broken on Windows x64.

Some IPv4 addresses could not be found in IOWorker::PoolMap instance because  Address::compare() method was broken on Windows x64.
@datastax-bot
Copy link

Hi @ybainier, thanks for your contribution!

In order for us to evaluate and accept your PR, we ask that you sign a contribution license agreement. It's all electronic and will take just minutes.

Sincerely,
DataStax Bot.

@datastax-bot
Copy link

Thank you @ybainier for signing the Contribution License Agreement.

Cheers,
DataStax Bot.

@mpenick
Copy link
Contributor

mpenick commented Oct 19, 2015

@ybainier Great find! That's a huge unsigned subtract fail. Thanks.

I would almost prefer using: if (a != b) return a < b ? -1 : 1 then have a default return 0 at the end. That way we don't have to use a 64-bit type (the driver is being used on 32-bit platforms too) What do you think?

@ybainier
Copy link
Author

That's clever and looks better.

@mpenick
Copy link
Contributor

mpenick commented Oct 22, 2015

Change landed in b296030. Thanks a ton for finding the issue and providing a fix.

@mpenick mpenick closed this Oct 22, 2015
mikefero pushed a commit that referenced this pull request Jul 1, 2019
…234)

* Fix header include guards
* Move cassconfig.hpp.in to driver_config.hpp.in
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants