[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: position.hh compile error C4146 (VisualStudio 2017)
From: |
長田偉伸 |
Subject: |
Re: position.hh compile error C4146 (VisualStudio 2017) |
Date: |
Sat, 18 Aug 2018 22:53:56 +0900 |
> Sorry, it is not clear to me: it still works, or it is still broken?
it is still broken.
> Can I install this fix?
> Would you also consider reporting this bug to MS?
Sorry, I can not do anything.
Because I can understand English only a little.
(I am Japanese)
2018-08-18 22:40 GMT+09:00 Akim Demaille <address@hidden>:
> Please, always keep the list in CC.
>
>> Le 18 août 2018 à 15:26, 長田偉伸 <address@hidden> a écrit :
>>
>> Thank you for your early reply
>>
>> I changed the file and then compiled it.
>> However, the situation has not changed.
>
> Sorry, it is not clear to me: it still works, or it is still broken?
>
>> ----- position.hh: 107 - 114
>> /// Compute max(min, lhs+rhs) (provided min <= lhs).
>> static unsigned add_ (unsigned lhs, int rhs, unsigned min)
>> {
>> //return (0 < rhs || -static_cast<unsigned>(rhs) < lhs
>> return (0 < rhs || -(static_cast<unsigned int>(rhs)) < lhs
>> ? rhs + lhs
>> : min);
>> }
>> ——
>
> Can I install this fix?
>
> Would you also consider reporting this bug to MS? Thanks!