Skip to content

Commit 809b420

Browse files
committed
Declaring kDigits static to avoid a codegen bug in VS2017.
The issue should be fixed shortly, but until then. https://developercommunity.visualstudio.com/comments/114235/view.html
1 parent 149b299 commit 809b420

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/time_zone_fixed.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ namespace {
2828
const char kFixedOffsetPrefix[] = "Fixed/";
2929

3030
int Parse02d(const char* p) {
31-
const char kDigits[] = "0123456789";
31+
static const char kDigits[] = "0123456789";
3232
if (const char* ap = std::strchr(kDigits, *p)) {
3333
int v = static_cast<int>(ap - kDigits);
3434
if (const char* bp = std::strchr(kDigits, *++p)) {

0 commit comments

Comments
 (0)