Skip to content

Commit

Permalink
#675 fix wrong generated version for double number
Browse files Browse the repository at this point in the history
  • Loading branch information
yauyimsing authored and stephane committed Jul 16, 2024
1 parent 087667a commit 4d033a8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/win32/configure.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ function readVersion() {
} else if (s.search(/^m4_define\(\[libmodbus_version_minor/) != -1) {
verMinor = s.substr(s.indexOf(",") + 3, 1);
} else if (s.search(/^m4_define\(\[libmodbus_version_micro/) != -1) {
verMicro = s.substr(s.indexOf(",") + 3, 1);
str_start_idx = s.indexOf(",") + 3;
num_str_length = s.length - str_start_idx - 2;
verMicro = s.substr(str_start_idx, num_str_length);
}
}
cf.Close();
Expand Down

0 comments on commit 4d033a8

Please sign in to comment.