aboutsummaryrefslogtreecommitdiff
path: root/multimedia/subtitlecomposer-kde4/files/patch-src__core__subtitleline.cpp
blob: 8609e8364c54dd3aa5c503c298b711d5b9b37519 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- ./src/core/subtitleline.cpp.orig	2008-01-08 09:16:27.000000000 +0300
+++ ./src/core/subtitleline.cpp	2008-01-08 15:54:39.000000000 +0300
@@ -41,7 +41,7 @@
 	if ( flag < 1 )
 		return ErrorUNKNOWN;
 
-	int id = (int)log2( flag );
+	int id = int( log( flag ) * M_LN2 );
 	return id < ErrorSIZE ? (ErrorID)id : ErrorUNKNOWN;
 }