facebook / facebook/folly

conv.cpp causes int truncation errors in MSVC

Open
#1,448 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
30.5k
Forks
5.9k
PR merge metrics
No merged PRs in 30d

Description

https://github.com/facebook/folly/blob/8f60f6338641eec89d7255625de81cc20af6a2a1/folly/Conv.cpp#L589

![image](https://user-images.githubusercontent.com/22989529/93141863-c98b4c00-f699-11ea-8293-7f88c98fdcf5.png)
```
E:\rnw\node_modules\.folly\folly-2020.09.14.00\folly\Conv.cpp(589,18): error C2220: the following warning is treated as an error [E:\rnw\vnext\Folly\Folly.vcxproj]
E:\rnw\node_modules\.folly\folly-2020.09.14.00\folly\Conv.cpp(647): message : see reference to function template instantiation 'folly::Expected folly::detail::digits_to(const char *,const char *) noexce
pt' being compiled [E:\rnw\vnext\Folly\Folly.vcxproj]
E:\rnw\node_modules\.folly\folly-2020.09.14.00\folly\Conv.cpp(589,18): warning C4310: cast truncates constant value [E:\rnw\vnext\Folly\Folly.vcxproj]
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.