-
Notifications
You must be signed in to change notification settings - Fork 222
add casts to suppress compiler warning CLR/Tools/Parser/ByteCodeParser.cpp line 389 and 390 #280
Comments
Duplicate of #257. If I remember it correctly, those integer types are used in case the platform does not have support for floating point numbers - see usage of
(?) |
Good point! Would it be better to do a typedef for platform_float and platform_double and then use #if/#else/#endif to define appropriately? |
#ifdef is not necessary. That flag refers to the MSIL instruction encoding, e.g. see ECMA-335 standard docs, Common Language Infrastructure (CLI), Partition III, CIL Instruction Set, section 3.27, page 62. Note the instruction modifiers? |
@doingnz Are you going to do a pull request with the fixes? |
I don't know how to make a pull request that isolates the change to that single file. (Git newbie. I like Git, but still learning!) If I make a new pull request, then it includes all the differences between my dev and the NETMF dev. These changes will include adding support for DS5 build tools. (#273) My changed file is here: |
Well, I have looked at your repository - if I understand it correctly, you have all DS5-related changes in If I wanted to create a pull request with Visual C++ compiler warning fixes, I would first reset the
Now the local To synchronize local 'dev' branch to your git repo, use Push as usual, only this time select "known changes" in Force: May discard in the Options (i.e. force push). Note: This is the situation where you could cause some troubles to anyone who has already started working on their local repos based on your changes, but I guess you don't need to worry about it. If you want to make it easier for the maintainers to merge your DS5 changes, or include ByteCodeParser fixes after they are merged in the official |
Vs2015 compiler raises a warning for the following lines in CLR/Tools/Parser/ByteCodeParser.cpp as it is expecting float/double.
Adding the cast avoids the warning.
The "ByteCodeParserCast" branch was made against a version of dev in doingnz repository that already includes DS5 support. I am a newbie to Git and don't know how to make it relative to a branch that matches the current dev in the main repository. As the edits are simple and for a single file, will leave that to a more experienced user :-)
The text was updated successfully, but these errors were encountered: