Skip to content

Commit

Permalink
AP_Scripting: Fix method of accessing character string to fix Qurt co…
Browse files Browse the repository at this point in the history
…mpiler warning
  • Loading branch information
katzfey committed Nov 15, 2024
1 parent a69b777 commit 8f1d57e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/AP_Scripting/lua/src/lundump.c
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ static void fchecksize (LoadState *S, size_t size, const char *tname) {
#define checksize(S,t) fchecksize(S,sizeof(t),#t)

static void checkHeader (LoadState *S) {
checkliteral(S, LUA_SIGNATURE + 1, "not a"); /* 1st char already checked */
checkliteral(S, &LUA_SIGNATURE[1], "not a"); /* 1st char already checked */
if (LoadByte(S) != LUAC_VERSION)
error(S, "version mismatch in");
if (LoadByte(S) != LUAC_FORMAT)
Expand Down

0 comments on commit 8f1d57e

Please sign in to comment.