]> Zhao Yanbai Git Server - minix.git/commitdiff
libsys: correct cast priority 52/652/1
authorBen Gras <ben@minix3.org>
Mon, 17 Jun 2013 08:40:28 +0000 (10:40 +0200)
committerBen Gras <ben@minix3.org>
Mon, 17 Jun 2013 08:40:28 +0000 (10:40 +0200)
Change-Id: I223482884c0e27726e8100209b203a33ded66f59

lib/libsys/arch/earm/frclock_util.c

index c32b501519463516d530db39eedb43f501019935..e4e5a78b1df91fbe516d17e2f817f4b7eee72737 100644 (file)
@@ -50,7 +50,7 @@ micro_delay(u32_t micros)
 
 u32_t frclock_64_to_micros(u64_t tsc)
 {
-        return (u32_t) tsc / (_minix_kerninfo->minix_arm_frclock_hz / MICROHZ);
+        return (u32_t) (tsc / (_minix_kerninfo->minix_arm_frclock_hz / MICROHZ));
 }
 
 void