mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
Add some explicit casts-through-void* to silence warnings about casts that increase the alignment requirements of the pointee (mostly caused by using char* for arithmetic).
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32219 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
56cdca569a
commit
f31000e770
8 changed files with 25 additions and 21 deletions
|
@ -1221,13 +1221,17 @@ static NSUInteger _defaultBehavior = 0;
|
|||
|
||||
- (void) setRoundingIncrement: (NSNumber *) number
|
||||
{
|
||||
switch ([number objCType][0])
|
||||
{
|
||||
case 'd':
|
||||
case 'f':
|
||||
#if GS_USE_ICU == 1
|
||||
if ([number class] == [NSDoubleNumber class])
|
||||
unum_setDoubleAttribute (internal->_formatter, UNUM_ROUNDING_INCREMENT,
|
||||
[number doubleValue]);
|
||||
#else
|
||||
return;
|
||||
#endif
|
||||
default:
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
- (NSNumber *) roundingIncrement
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue