website: update Free Electrons logo
[buildroot-gz.git] / package / assimp / 0001-Fix-FBXConverter-use-proper-64-bit-constant.patch
blobbfcbeb55e3253c550744b945f6d5bd5046e218a1
1 From 30a2ecc7939449f235282eb6de42e367fc5b1867 Mon Sep 17 00:00:00 2001
2 From: Peter Seiderer <ps.report@gmx.net>
3 Date: Thu, 14 Jan 2016 22:13:15 +0100
4 Subject: [PATCH] Fix FBXConverter: use proper 64-bit constant
6 Use proper 64-bit constant for CONVERT_FBX_TIME(time) conversion, fixes:
8 code/FBXConverter.cpp:2025: error: integer constant is too large for 'long' type
9 code/FBXConverter.cpp:2026: error: integer constant is too large for 'long' type
10 code/FBXConverter.cpp:2794: error: integer constant is too large for 'long' type
11 code/FBXConverter.cpp:2868: error: integer constant is too large for 'long' type
12 code/FBXConverter.cpp:2878: error: integer constant is too large for 'long' type
13 code/FBXConverter.cpp:2888: error: integer constant is too large for 'long' type
15 Signed-off-by: Peter Seiderer <ps.report@gmx.net>
16 ---
17 code/FBXConverter.cpp | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
20 diff --git a/code/FBXConverter.cpp b/code/FBXConverter.cpp
21 index e0c6b9c..b1e9a71 100644
22 --- a/code/FBXConverter.cpp
23 +++ b/code/FBXConverter.cpp
24 @@ -67,7 +67,7 @@ namespace FBX {
26 #define MAGIC_NODE_TAG "_$AssimpFbx$"
28 -#define CONVERT_FBX_TIME(time) static_cast<double>(time) / 46186158000L
29 +#define CONVERT_FBX_TIME(time) static_cast<double>(time) / 46186158000LL
31 // XXX vc9's debugger won't step into anonymous namespaces
32 //namespace {
33 --
34 2.1.4