Skip to content

Commit

Permalink
Tidy-up
Browse files Browse the repository at this point in the history
Signed-off-by: Dave Rodgman <[email protected]>
  • Loading branch information
daverodgman committed Mar 31, 2023
1 parent 42a5bb1 commit 8dde24e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/timing.c
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ unsigned long mbedtls_timing_get_timer(struct mbedtls_timing_hr_time *val, int r

if (reset) {
QueryPerformanceCounter(&t->start);
memcpy(val, t, sizeof(struct _hr_time));
memcpy(val, val_aligned, sizeof(struct mbedtls_timing_hr_time));
return 0;
} else {
unsigned long delta;
Expand Down Expand Up @@ -290,7 +290,7 @@ unsigned long mbedtls_timing_get_timer(struct mbedtls_timing_hr_time *val, int r

if (reset) {
gettimeofday(&t->start, NULL);
memcpy(val, t, sizeof(struct _hr_time));
memcpy(val, val_aligned, sizeof(struct mbedtls_timing_hr_time));
return 0;
} else {
unsigned long delta;
Expand Down

0 comments on commit 8dde24e

Please sign in to comment.