Skip to content

Commit

Permalink
Fix build error on non SSE 4.2 environment (#784)
Browse files Browse the repository at this point in the history
This will fix following error.

```
compiling ../../../../ext/oj/parse.c
../../../../ext/oj/parse.c:366:28: error: too many arguments to function call, expected single argument 'pi', have 2 arguments
    scan_string_noSIMD(pi, str);
    ~~~~~~~~~~~~~~~~~~     ^~~
../../../../ext/oj/parse.c:330:20: note: 'scan_string_noSIMD' declared here
static inline void scan_string_noSIMD(ParseInfo pi) {
```
  • Loading branch information
Watson1978 authored Jul 3, 2022
1 parent a455c38 commit 6d133a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/oj/parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ static void read_str(ParseInfo pi) {
#if defined(OJ_USE_SSE4_2)
scan_string_SIMD(pi);
#else
scan_string_noSIMD(pi, str);
scan_string_noSIMD(pi);
#endif
if (RB_UNLIKELY(pi->end <= pi->cur)) {
oj_set_error_at(pi,
Expand Down

0 comments on commit 6d133a9

Please sign in to comment.