mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-17 19:09:56 +00:00
Conversation activities
This commit is contained in:
parent
d05275665e
commit
c034db4abd
@ -14,18 +14,7 @@
|
|||||||
|
|
||||||
static inline int roundUp(int numToRound, int multiple)
|
static inline int roundUp(int numToRound, int multiple)
|
||||||
{
|
{
|
||||||
if (multiple == 0)
|
return multiple == 0 ? numToRound : ((numToRound % multiple) == 0 ? numToRound : (numToRound + multiple - (numToRound % multiple)));
|
||||||
{
|
|
||||||
return numToRound;
|
|
||||||
}
|
|
||||||
|
|
||||||
int remainder = numToRound % multiple;
|
|
||||||
if (remainder == 0)
|
|
||||||
{
|
|
||||||
return numToRound;
|
|
||||||
}
|
|
||||||
|
|
||||||
return numToRound + multiple - remainder;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@interface MTOutputStream ()
|
@interface MTOutputStream ()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user