mirror of
https://github.com/love2d/love.git
synced 2026-08-17 19:23:38 +02:00
Fixed a couple bugs caught by clang's static analyzer
This commit is contained in:
@@ -1971,7 +1971,7 @@
|
|||||||
08FB7793FE84155DC02AAC07 /* Project object */ = {
|
08FB7793FE84155DC02AAC07 /* Project object */ = {
|
||||||
isa = PBXProject;
|
isa = PBXProject;
|
||||||
attributes = {
|
attributes = {
|
||||||
LastUpgradeCheck = 0460;
|
LastUpgradeCheck = 0500;
|
||||||
};
|
};
|
||||||
buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "love-framework" */;
|
buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "love-framework" */;
|
||||||
compatibilityVersion = "Xcode 3.2";
|
compatibilityVersion = "Xcode 3.2";
|
||||||
@@ -2322,6 +2322,7 @@
|
|||||||
isa = XCBuildConfiguration;
|
isa = XCBuildConfiguration;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||||
|
COMBINE_HIDPI_IMAGES = YES;
|
||||||
DYLIB_COMPATIBILITY_VERSION = 9.0;
|
DYLIB_COMPATIBILITY_VERSION = 9.0;
|
||||||
DYLIB_CURRENT_VERSION = 9.0;
|
DYLIB_CURRENT_VERSION = 9.0;
|
||||||
FRAMEWORK_VERSION = A;
|
FRAMEWORK_VERSION = A;
|
||||||
@@ -2342,6 +2343,7 @@
|
|||||||
isa = XCBuildConfiguration;
|
isa = XCBuildConfiguration;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||||
|
COMBINE_HIDPI_IMAGES = YES;
|
||||||
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
||||||
DYLIB_COMPATIBILITY_VERSION = 9.0;
|
DYLIB_COMPATIBILITY_VERSION = 9.0;
|
||||||
DYLIB_CURRENT_VERSION = 9.0;
|
DYLIB_CURRENT_VERSION = 9.0;
|
||||||
|
|||||||
@@ -204,7 +204,7 @@
|
|||||||
29B97313FDCFA39411CA2CEA /* Project object */ = {
|
29B97313FDCFA39411CA2CEA /* Project object */ = {
|
||||||
isa = PBXProject;
|
isa = PBXProject;
|
||||||
attributes = {
|
attributes = {
|
||||||
LastUpgradeCheck = 0460;
|
LastUpgradeCheck = 0500;
|
||||||
};
|
};
|
||||||
buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "love" */;
|
buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "love" */;
|
||||||
compatibilityVersion = "Xcode 3.2";
|
compatibilityVersion = "Xcode 3.2";
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ int TrueTypeRasterizer::getLineHeight() const
|
|||||||
|
|
||||||
GlyphData *TrueTypeRasterizer::getGlyphData(uint32 glyph) const
|
GlyphData *TrueTypeRasterizer::getGlyphData(uint32 glyph) const
|
||||||
{
|
{
|
||||||
love::font::GlyphMetrics glyphMetrics;
|
love::font::GlyphMetrics glyphMetrics = {};
|
||||||
FT_Glyph ftglyph;
|
FT_Glyph ftglyph;
|
||||||
|
|
||||||
// Initialize
|
// Initialize
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ int w_Thread_start(lua_State *L)
|
|||||||
{
|
{
|
||||||
for (int j = i; j >= 0; j--)
|
for (int j = i; j >= 0; j--)
|
||||||
delete args[j];
|
delete args[j];
|
||||||
delete args;
|
delete[] args;
|
||||||
return luaL_argerror(L, i+2, "boolean, number, string, love type, or flat table expected");
|
return luaL_argerror(L, i+2, "boolean, number, string, love type, or flat table expected");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user