Skip to content

Commit

Permalink
Fix vector size detection for size 16 (#730)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rekt3421 authored Oct 21, 2024
1 parent d523f93 commit 0ef41e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/printf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ std::string get_vector_fmt(std::string fmt, int& vector_size, int& element_size,

size_t vec_length_pos_start = ++pos;
size_t vec_length_pos_end =
fmt.find_first_not_of("23468", vec_length_pos_start);
fmt.find_first_not_of("123468", vec_length_pos_start);
auto vec_length_str = fmt.substr(vec_length_pos_start,
vec_length_pos_end - vec_length_pos_start);
int vec_length = std::atoi(vec_length_str.c_str());
Expand Down

0 comments on commit 0ef41e9

Please sign in to comment.