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.)


> > Perhaps the #ifdef can be adjusted for this compiler and context?

VC2013 has the definition of INFINITY, so it's doesn't depend on our
definition in macros.h.


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.

Raspunde prin e-mail lui