Skip to content

Commit

Permalink
Merge pull request #51 from mwinterb/vs2017-codegen-fix
Browse files Browse the repository at this point in the history
Declaring kDigits static to avoid a codegen bug in VS2017.
  • Loading branch information
devjgm authored Sep 23, 2017
2 parents 149b299 + 809b420 commit d5e227e
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 d5e227e

Please sign in to comment.