This forum has been archived. All content is frozen. Please use KDE Discuss instead.

_WIN32_WCE bug in Memory.h

Tags: None
(comma "," separated)
frankrecknagel
Registered Member
Posts
2
Karma
0

_WIN32_WCE bug in Memory.h

Wed Feb 13, 2013 4:40 pm
Hi there!

I was compiling the lib for WinCE and came across something what seems to be a bug in my eyes. I dont know if this is the right place for my question but there seems to be no actual bug dealing with WinCE.

In Memory.h in aligned_malloc there is in line 207 -211
#elif defined(_MSC_VER) && (!defined(_WIN32_WCE))
result = _aligned_malloc(size, 16);
#else
result = handmade_aligned_malloc(size);
#endif

which leads to "result = handmade_aligned_malloc(size);" under WinCE.
In the aligned_free (line 220) I am missing the " && (!defined(_WIN32_WCE))" in line 230 which leads then to "_aligned_free(ptr);" which is not defined under WinCE. The same applies to aligned_realloc (line242).

Adding && (!defined(_WIN32_WCE)) to the appropriate lines solves the compile issues.

Can someone confirm this as a bug?

Regards
Frank
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS

Re: _WIN32_WCE bug in Memory.h

Wed Feb 13, 2013 6:12 pm
You're right, fixed:

https://bitbucket.org/eigen/eigen/commits/127a7d3346d9/
changeset: 127a7d3346d9
user: ggael
date: 2013-02-13 19:09:31
summary: Fix bug in aligned_free with windows CE

https://bitbucket.org/eigen/eigen/commits/86fa05446156/
changeset: 86fa05446156
branch: 3.1
user: ggael
date: 2013-02-13 19:09:31
summary: Fix bug in aligned_free with windows CE
(transplanted from 127a7d3346d98130bc03f3d1d44ac95c9df0e86b)
frankrecknagel
Registered Member
Posts
2
Karma
0

Re: _WIN32_WCE bug in Memory.h

Thu Feb 14, 2013 8:11 am
Thanks ggael. When we will will have the next official release?

Regards
Frank


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]