-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Type conversion warnings on Windows+MSVC #65
Comments
* Changed the `bcd_` arithmetic functions' return type from `int` to `DSS_HUGE`. * `VRF_HUGE` now uses `DSS_HUGE` instead of `long` for type casts. * Switched the `Modulus` and `Multiplier` constants in `speed_seed.c` to have smaller types which fit their values, rather than DSS_HUGE.
* Changed the `bcd_` arithmetic functions' return type from `int` to `DSS_HUGE`. * `VRF_HUGE` now uses `DSS_HUGE` instead of `long` for type casts. * Switched the `Modulus` and `Multiplier` constants in `speed_seed.c` to have smaller types which fit their values, rather than DSS_HUGE. * Additional changes of type to `DSS_HUGE` where it seems that's needed.
* Changed the `bcd_` arithmetic functions' return type from `int` to `DSS_HUGE`. * `VRF_HUGE` now uses `DSS_HUGE` instead of `long` for type casts. * Switched the `Modulus` and `Multiplier` constants in `speed_seed.c` to have smaller types which fit their values, rather than DSS_HUGE. * Additional changes of type to `DSS_HUGE` where it seems that's needed.
Ok, I will look at it too |
It's looking depressing. I have tried to fix part of warnings and get even more as result. |
Wait, don't do it yet. This is affected by changes regarding other issues (e.g. |
@eyalroz, hello! I try to write to you via e-mail, but Gmail notifies, that address not found, so I write here. Maybe, it worths to merge changes from |
If you triend [email protected] - that's gone. I'm at [email protected] . |
* Changed the `bcd_` arithmetic functions' return type from `int` to `DSS_HUGE`. * `VRF_HUGE` now uses `DSS_HUGE` instead of `long` for type casts. * Switched the `Modulus` and `Multiplier` constants in `speed_seed.c` to have smaller types which fit their values, rather than DSS_HUGE. * Additional changes of type to `DSS_HUGE` where it seems that's needed.
* The overall number of records uses the `DSS_HUGE` type; no longer assuming each update segment's row count can fit into an `int` * The seed adjustment functions (`sd_order`, `sd_line` etc.) take a skip count which is a record index; it could well be a `DSS_HUGE`, seeing how the `row_cnt` global is a `DSS_HUGE`.
* The overall number of records uses the `DSS_HUGE` type; no longer assuming each update segment's row count can fit into an `int` * The seed adjustment functions (`sd_order`, `sd_line` etc.) take a skip count which is a record index; but it is also a `long`, since the seeds are long. Now, we could start changing the seeds into `DSS_HUGE`s, but for now - let's just explicitly cast `DSS_HUGE` record count inputs to these function into `long`s.
* The overall number of records uses the `DSS_HUGE` type; no longer assuming each update segment's row count can fit into an `int` * The seed adjustment functions (`sd_order`, `sd_line` etc.) take a skip count which is a record index; but it is also a `long`, since the seeds are long. Now, we could start changing the seeds into `DSS_HUGE`s, but for now - let's just explicitly cast `DSS_HUGE` record count inputs to these function into `long`s. * Propagate use of `DSS_HUGE` in `pr_drange()`
Useful information related to this issue can be found in a discussion of issue #69. |
We're getting lots and lots of warnings building
dbgen
with MSVC:and about the same errors when building qgen.
In this issue, we'll consider just the type conersion, not the DLL linkage warning. These might be due to the fact that we kept an
int
type for BCD arithmetic function return types. Let's change those and see what happens.@valco1994 : FYI.
The text was updated successfully, but these errors were encountered: