[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[tyndur-devel] [PATCH] Unnötige Berechnung des Restes verschoben.



Signed-off-by: Dominik Bittner <DoBi-tyndur@xxxxxxx>
---
 src/modules/lib/stdlibc/jprintf.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/modules/lib/stdlibc/jprintf.c b/src/modules/lib/stdlibc/jprintf.c
index fb5c568..cefd586 100644
--- a/src/modules/lib/stdlibc/jprintf.c
+++ b/src/modules/lib/stdlibc/jprintf.c
@@ -52,10 +52,10 @@ unsigned long long divmod(unsigned long long dividend, unsigned int divisor, uns
     unsigned int rem;
 
     quotient = dividend / divisor;
-    rem = dividend % divisor;
 
     if(remainder)
     {
+        rem = dividend % divisor;
         *remainder = rem;
     }
 
-- 
1.7.2.5