Skip to content

Commit

Permalink
fixed initializer is not constant error on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
rdbo committed Apr 6, 2024
1 parent f5bb066 commit 0f2eac7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include "helpers.h"

const lm_byte_t scanbuf[20] = { 0x1, 0x43, 0xfa, 0x48, 0x15, 'A', 'B', 'C', 0x0, 'D', 'E', 'F', 0xfa, 0x44, 0xde, 0xad, 0xbe, 0xef, 0x0, 0x0 };
const lm_size_t match_offset = 5;
#define match_offset 5
static const lm_byte_t *expected_match = &scanbuf[match_offset];
static lm_byte_t datascan[] = { 'A', 'B', 'C', '\0', 'D', 'E', 'F' };
static lm_byte_t scanpattern[] = { 'A', 'B', 'C', '\xFF', 'D', 'E', 'F' };
Expand Down Expand Up @@ -119,4 +119,4 @@ char *test_LM_SigScanEx(struct scan_args *arg)
mu_assert("function attempted to run with bad argument (invalid scan size)", LM_SigScanEx(arg->ptargetproc, scansig, arg->scanaddr, 0) == LM_ADDRESS_BAD);

return NULL;
}
}

0 comments on commit 0f2eac7

Please sign in to comment.