Skip to content

Commit

Permalink
Fixed clang-format violations
Browse files Browse the repository at this point in the history
  • Loading branch information
wintonpc committed Aug 31, 2023
1 parent d3d3625 commit 3cfaa46
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ext/oj/object.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ static int parse_num(const char *str, const char *end, int cnt) {
VALUE
oj_parse_xml_time(const char *str, int len) {
VALUE args[7];
const char *end = str + len;
const char *end = str + len;
const char *orig = str;
int n;

Expand Down Expand Up @@ -145,8 +145,8 @@ oj_parse_xml_time(const char *str, int len) {
char c = *str++;

if ('.' == c) {
unsigned long long num = 0;
unsigned long long den = 1;
unsigned long long num = 0;
unsigned long long den = 1;
const unsigned long long last_den_limit = ULLONG_MAX / 10;

for (; str < end; str++) {
Expand All @@ -156,8 +156,8 @@ oj_parse_xml_time(const char *str, int len) {
break;
}
if (den > last_den_limit) {
// bail to Time.parse if there are more fractional digits than a ULLONG rational can hold
return rb_funcall(rb_cTime, oj_parse_id, 1, rb_str_new(orig, len));
// bail to Time.parse if there are more fractional digits than a ULLONG rational can hold
return rb_funcall(rb_cTime, oj_parse_id, 1, rb_str_new(orig, len));
}
num = num * 10 + (c - '0');
den *= 10;
Expand Down

0 comments on commit 3cfaa46

Please sign in to comment.