Skip to content

Commit

Permalink
64-bit demo app fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mindbrix committed Dec 15, 2013
1 parent 218007b commit f738542
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions TurtleBezierPath demo/TurtleBezierPath demo/RoundedUISlider.m
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,16 @@ - (id)initWithFrame:(CGRect)frame
}


-(CGFloat)value
-(float)value
{
return roundToStep( super.value, self.rounding );
}



#pragma mark - Maths

static inline CGFloat roundToStep( CGFloat number, CGFloat step )
static inline float roundToStep( float number, float step )
{
return ( step != 0.0f ) ? floorf( number / step ) * step : number;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ -(BOOL)isEqual:(id)object

-(NSString *)description
{
return [ NSString stringWithFormat:@"index = %d, path = %@, previewPath = %@, value0 = %g, value1 = %g", self.index, self.path, self.previewPath, self.value0, self.value1 ];
return [ NSString stringWithFormat:@"index = %ld, path = %@, previewPath = %@, value0 = %g, value1 = %g", (long)self.index, self.path, self.previewPath, self.value0, self.value1 ];
}

@end

0 comments on commit f738542

Please sign in to comment.