Hi, 2016/6/15 Wed 19:36:54 UTC+9 Ken Takata wrote: > Hi Christian and Bram, > > 2016/6/15 Wed 16:04:45 UTC+9 Christian Brabandt wrote: > > Hi Bram! > > > > On Di, 14 Jun 2016, Bram Moolenaar wrote: > > > > > > > > Well, it's computing infinity, so overflow is a bit of an > > > understatement. > > > > Why does only 32bit version complain? > > I don't know why, but math.h from VC2013 says: > > #define INFINITY ((float)(_HUGE_ENUF * _HUGE_ENUF)) /* causes warning > C4756: overflow in constant arithmetic (by design) */ > > So I think we can just ignore this C4756 warning. > FYI, math.h form VC2015 doesn't have this comment. Perhaps this is fixed > with VC2015? (I haven't tried yet.)
I confirmed that both VC2010 and VC2015 don't warn this. So this would be a problem of VC2013 only. (I haven't tested VC2012.) I don't think we should add the ugly #pragma just for suppressing the warning on VC2013 only. Regards, Ken Takata -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
