Skip to content

Replace db array default values with real literals#12

Merged
jiandewang merged 1 commit intojiandewang:DEV-EMC-candidate-20240425from
marshallward:db_type_fix
Apr 26, 2024
Merged

Replace db array default values with real literals#12
jiandewang merged 1 commit intojiandewang:DEV-EMC-candidate-20240425from
marshallward:db_type_fix

Conversation

@marshallward
Copy link
Copy Markdown

The default values for the database transfer functions were incorrectly assiged as integer literals, recast to types using real32/64 but actually corresponding to whatever integer kind equals real32/64.

We now simply assign it a literal value of -1. and rely on the compiler to handle the recasting.

Although none of these functions were intended to be used, and -1 would probably be eventually cast into an appropriate real type, it is better to get this correct.

Thanks to Keith Lindsay for suggesting this change.

The default values for the database transfer functions were incorrectly
assiged as integer literals, recast to types using real32/64 but
actually corresponding to whatever integer kind equals real32/64.

We now simply assign it a literal value of -1. and rely on the compiler
to handle the recasting.

Although none of these functions were intended to be used, and -1 would
probably be eventually cast into an appropriate real type, it is better
to get this correct.

Thanks to Keith Lindsay for suggesting this change.
@jiandewang jiandewang merged commit a89d085 into jiandewang:DEV-EMC-candidate-20240425 Apr 26, 2024
@marshallward marshallward deleted the db_type_fix branch May 24, 2025 18:53
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.

2 participants