Skip to content

Commit d5e227e

Browse files
authored
Merge pull request #51 from mwinterb/vs2017-codegen-fix
Declaring kDigits static to avoid a codegen bug in VS2017.
2 parents 149b299 + 809b420 commit d5e227e

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)