Skip to content
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

Fix unsafe conversion from Char to int #6178

Merged
merged 1 commit into from
Nov 9, 2023

Conversation

MDoerner
Copy link
Contributor

@MDoerner MDoerner commented Nov 8, 2023

It is not safe to convert from Char to int16, since the unicode code points are unsigned 16-bit integers. The safe conversion it to int32, as also indicated in the docs.

This should eliminate the cause of #6017.

It is not safe to convert from Char to int16, since the unicode code points are unsigned 16-bit integers. The safe conversion it to int32, as also indicated in the docs.
@rubberduck-vba-releasebot
Copy link
Member

Copy link

codecov bot commented Nov 8, 2023

Codecov Report

Merging #6178 (f3254a0) into next (32da47c) will increase coverage by 0.24%.
The diff coverage is n/a.

Additional details and impacted files
@@            Coverage Diff             @@
##             next    #6178      +/-   ##
==========================================
+ Coverage   97.34%   97.58%   +0.24%     
==========================================
  Files           4        4              
  Lines         413      413              
  Branches       28       28              
==========================================
+ Hits          402      403       +1     
  Misses          6        6              
+ Partials        5        4       -1     

see 1 file with indirect coverage changes

@retailcoder retailcoder merged commit 9323f70 into rubberduck-vba:next Nov 9, 2023
3 checks passed
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.

None yet

3 participants