Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adopt upb change for timestamp and duration json to php #5106

Merged
merged 10 commits into from
Sep 23, 2018
Prev Previous commit
Next Next commit
Re-sync upb
  • Loading branch information
TeBoring committed Sep 21, 2018
commit 73aecac671c2a45b3c3a81f078f381e362e79a43
2 changes: 1 addition & 1 deletion php/ext/google/protobuf/upb.c
Original file line number Diff line number Diff line change
Expand Up @@ -17289,7 +17289,7 @@ static bool printer_enddurationmsg(void *closure, const void *handler_data,
return false;
}

_upb_snprintf(buffer, sizeof(buffer), "%ld", p->seconds);
_upb_snprintf(buffer, sizeof(buffer), "%ld", (long)p->seconds);
base_len = strlen(buffer);

if (p->nanos != 0) {
Expand Down