AP_Scripting: Fix method of accessing character string to fix Qurt compiler warning

This commit is contained in:
Eric Katzfey 2024-11-14 12:37:36 -08:00 committed by Andrew Tridgell
parent 9941313a9d
commit 45d1a0954e
1 changed files with 1 additions and 1 deletions

View File

@ -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)