Skip to content

Commit

Permalink
BUG: JPEG2000 bool type in C is now unsigned char
Browse files Browse the repository at this point in the history
JPEG2000 is a compiled C library interfaced to a C++ library. When
compiling the C library the "bool" type is defined as a int yet in C++
it's a intrinsic bool type, which is 1 byte. While it's not guaranteed
that a bool is the same size, alignment etc as a unsigned
char. In practice its working better until the openjpeg library can be
updated.

Change-Id: I3780812dd60fc23873e5853b35df0f3e3ae5f9dc
  • Loading branch information
blowekamp committed May 24, 2013
1 parent a076a8a commit a7eee65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/ThirdParty/OpenJPEG/src/openjpeg/openjpeg.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
#include <stdbool.h>
#else
#if !defined(bool)
#define bool int
#define bool unsigned char
#endif
#if !defined(true)
#define true 1
Expand Down

0 comments on commit a7eee65

Please sign in to comment.