Skip to content

Commit

Permalink
Merge pull request sysprog21#42 from OscarShiang/dudect_fix
Browse files Browse the repository at this point in the history
Fix the size to be cleaned in prepare_inputs
  • Loading branch information
jserv authored Sep 14, 2020
2 parents eaa393e + 2d97587 commit 8063245
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dudect/constant.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ void prepare_inputs(uint8_t *input_data, uint8_t *classes)
for (size_t i = 0; i < number_measurements; i++) {
classes[i] = randombit();
if (classes[i] == 0)
*(uint16_t *) (input_data + i * chunk_size) = 0x00;
memset(input_data + (size_t) i * chunk_size, 0, chunk_size);
}

for (size_t i = 0; i < NR_MEASURE; ++i) {
Expand Down

0 comments on commit 8063245

Please sign in to comment.