My favorites | Sign in
Project Home Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions

Issue 225 attachment: CFFI.cpp.patch (634 bytes)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--- trunk/src/hx/CFFI.cpp
+++ trunk/src/hx/CFFI.cpp
@@ -146,7 +146,7 @@
int type = arg1->__GetType();
if (type<valtAbstractBase)
hx::Throw( HX_CSTRING("Value has no 'kind'") );
- return (vkind)(type);
+ return (vkind)(intptr_t)(type);
}


@@ -649,14 +649,14 @@
// Abstract types
vkind alloc_kind()
{
- return (vkind)hxcpp_alloc_kind();
+ return (vkind)(intptr_t)hxcpp_alloc_kind();
}

void kind_share(vkind *inKind,const char *inName)
{
int k = (int)(intptr_t)*inKind;
hxcpp_kind_share(k,inName);
- *inKind = (vkind)k;
+ *inKind = (vkind)(intptr_t)k;
}


Powered by Google Project Hosting