Skip to content

Commit

Permalink
Set valueAsInches in the 'default:' case as @adamgit adviced
Browse files Browse the repository at this point in the history
  • Loading branch information
cxa committed Jan 27, 2016
1 parent 1cb3291 commit 9281ead
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/DOM classes/Core DOM/CSSPrimitiveValue.m
Expand Up @@ -65,7 +65,7 @@ -(float) getFloatValue:(CSSPrimitiveType) unitType
case CSS_PT:
case CSS_PC:
{
float valueAsInches = 0;
float valueAsInches;
switch( self.primitiveType )
{
case CSS_CM:
Expand All @@ -91,6 +91,7 @@ -(float) getFloatValue:(CSSPrimitiveType) unitType

default:
{
valueAsInches = 0;
NSAssert( FALSE, @"This line is impossible but Apple's compiler is crap" );
}
}
Expand Down

0 comments on commit 9281ead

Please sign in to comment.