[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kjsembed/kjsembed
From: Erik Lloyd Bunce <kde () bunce ! us>
Date: 2006-09-30 19:23:59
Message-ID: 1159644239.599526.22845.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 590761 by bunce:
Workaround MSVC eitness.
M +6 -1 binding_support.h
--- trunk/KDE/kdelibs/kjsembed/kjsembed/binding_support.h #590760:590761
@@ -281,7 +281,12 @@
if (!value || !value->isNumber())
return defaultValue;
- return T(value->toInteger(exec));
+// deal with MSVC annoyances
+#if COMPILER(MSVC)
+ return static_cast<T>(static_cast<int>(value->toInteger(exec)));
+#else
+ return static_cast<T>(value->toInteger(exec));
+#endif
}
// extractInteger specialization
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic