Skip to content

Commit db436e0

Browse files
AMDmi3DusteD
authored andcommitted
Fix clang warnings
1 parent 9479653 commit db436e0

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

input.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ bool controllerClass::get()
193193
}
194194

195195
} else {
196-
GLfloat x; //This is the actual traveling speed of the paddle
196+
GLfloat x = 0.0; //This is the actual traveling speed of the paddle
197197
if(joystickx > setting.JoyCalHighJitter)
198198
{
199199
x = joystickRightX * joystickx;

menu.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -912,7 +912,9 @@ vector<struct themeInfo> tI; //Vector of theme info
912912
//Find out how many lines we have room for in the box.
913913
int nl= (1.26/glText->getHeight(FONT_MENUHIGHSCORE));
914914
//If theres room for more than 20, only show 20..
915-
nl > 20 ? nl=20 : nl=nl;
915+
if (nl > 20) {
916+
nl = 20;
917+
}
916918

917919
for(int i=0; i < nl; i++)
918920
{

0 commit comments

Comments
 (0)