AP_Scripting: Remove meaningless semicolons

This commit is contained in:
murata 2022-02-05 21:21:06 +09:00 committed by Randy Mackay
parent a7108ed136
commit 6c83f2262d
2 changed files with 2 additions and 2 deletions

View File

@ -1936,7 +1936,7 @@ void emit_operators(struct userdata *data) {
fprintf(source, " %s *ud2 = check_%s(L, 2);\n", data->name, data->sanatized_name);
// create a container for the result
fprintf(source, " new_%s(L);\n", data->sanatized_name);
fprintf(source, " *check_%s(L, -1) = *ud %c *ud2;;\n", data->sanatized_name, op_sym);
fprintf(source, " *check_%s(L, -1) = *ud %c *ud2;\n", data->sanatized_name, op_sym);
// return the first pointer
fprintf(source, " return 1;\n");
fprintf(source, "}\n\n");

View File

@ -320,7 +320,7 @@ static int lua_get_i2c_device(lua_State *L) {
static_assert(SCRIPTING_MAX_NUM_I2C_DEVICE >= 0, "There cannot be a negative number of I2C devices");
if (AP::scripting()->num_i2c_devices >= SCRIPTING_MAX_NUM_I2C_DEVICE) {
return luaL_argerror(L, 1, "no i2c devices available");;
return luaL_argerror(L, 1, "no i2c devices available");
}
AP::scripting()->_i2c_dev[AP::scripting()->num_i2c_devices] = new AP_HAL::OwnPtr<AP_HAL::I2CDevice>;