Skip to content

Commit cf81f03

Browse files
committed
Initialize Range variables
1 parent 971489e commit cf81f03

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/CommonHelix.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ namespace libhelix {
3232
*
3333
*/
3434
struct Range {
35-
int start;
36-
int end;
35+
int start = 0;
36+
int end = 0;
37+
3738
bool isValid(uint32_t max) {
3839
return start>=0 && end>start && (end - start)<=max;
3940
}

0 commit comments

Comments
 (0)