[ scummvm-Patches-2911414 ] MSVC: conversions warnings in common code

SourceForge.net noreply at sourceforge.net
Wed Dec 9 15:01:06 CET 2009


Patches item #2911414, was opened at 2009-12-09 09:01
Message generated for change (Tracker Item Submitted) made by littleboy
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=418822&aid=2911414&group_id=37116

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Julien (littleboy)
Assigned to: Nobody/Anonymous (nobody)
Summary: MSVC: conversions warnings in common code

Initial Comment:
I'm now compiling my engine (lastexpress) using MSVC with C4244 ('conversion' conversion from 'type1' to 'type2', possible loss of data) turned on and I've noticed a few warnings in headers included from common code. I'm opening this entry to track those cases.

Patch1: Cursor struct constructor using an int parameter to initialize a byte field: targetScale is defined as byte, but the constructor takes an int value. This changes the constructor to take a byte value for targetScale.

Patch2: Rect::clip taking int parameters while it's using int16 internally. This changes the clip method to take int16 values.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=418822&aid=2911414&group_id=37116




More information about the Scummvm-tracker mailing list