Skip to content

Conversation

@csware
Copy link
Contributor

@csware csware commented Nov 7, 2025

Fix two compiler warnings in MSVC:

  • Warning C4244 'argument': conversion from 'size_t' to 'int', possible loss of data.

Type of change

  • ✅ Bug fix (non-breaking change that fixes an issue)

@droidmonkey droidmonkey closed this Nov 7, 2025
@droidmonkey droidmonkey reopened this Nov 7, 2025
@droidmonkey droidmonkey changed the title Fix warnings Fix MSVC compiler warnings Nov 7, 2025
@droidmonkey droidmonkey self-requested a review November 7, 2025 20:45
…ible loss of data

Use explicit cast.

Signed-off-by: Sven Strickroth <email@cs-ware.de>
…sible loss of data

Use explicit cast.

Signed-off-by: Sven Strickroth <email@cs-ware.de>
@csware
Copy link
Contributor Author

csware commented Nov 8, 2025

This may need updating when upgrading to Qt6.

@droidmonkey
Copy link
Member

We are planning to merge Qt6 once we release 2.7.11 so this change may not be necessary right now.

There are a lot of size_t to int compiler warnings though.

@csware
Copy link
Contributor Author

csware commented Nov 8, 2025

There are a lot of size_t to int compiler warnings though.

Only these 4 were reported by MSVC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants