Skip to content

Commit

Permalink
Declaring kDigits static to avoid a codegen bug in VS2017.
Browse files Browse the repository at this point in the history
The issue should be fixed shortly, but until then.
https://developercommunity.visualstudio.com/comments/114235/view.html
  • Loading branch information
mwinterb committed Sep 22, 2017
1 parent 149b299 commit 809b420
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/time_zone_fixed.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ namespace {
const char kFixedOffsetPrefix[] = "Fixed/";

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

0 comments on commit 809b420

Please sign in to comment.