mirror of https://github.com/ArduPilot/ardupilot
AP_Scripting: Fix method of accessing character string to fix Qurt compiler warning
This commit is contained in:
parent
9941313a9d
commit
45d1a0954e
|
@ -241,7 +241,7 @@ static void fchecksize (LoadState *S, size_t size, const char *tname) {
|
||||||
#define checksize(S,t) fchecksize(S,sizeof(t),#t)
|
#define checksize(S,t) fchecksize(S,sizeof(t),#t)
|
||||||
|
|
||||||
static void checkHeader (LoadState *S) {
|
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)
|
if (LoadByte(S) != LUAC_VERSION)
|
||||||
error(S, "version mismatch in");
|
error(S, "version mismatch in");
|
||||||
if (LoadByte(S) != LUAC_FORMAT)
|
if (LoadByte(S) != LUAC_FORMAT)
|
||||||
|
|
Loading…
Reference in New Issue