den-run-ai / msinttypes

Automatically exported from code.google.com/p/msinttypes
0 stars 0 forks source link

incorect type declarations on evc4 #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
Thise defnitions will produce incorect results for Embedded Visual C++ 4
Sp4 on WCE420
typedef __int16           int16_t;
typedef unsigned __int16  uint16_t;

They are correct however short != __int16 for evc4 compiler for some
unknown reason and evc4 with STLPort produces for example:

std::numeric_limits<short>::max() == 65535
std::numeric_limits<__int16>::max() == 0

Beter relay of that what is defined in types.h

For example frm 

evc4 ARM
typedef signed      char        INT8;
typedef unsigned    char        UINT8;
typedef signed      short       INT16;
typedef unsigned    short       UINT16;
typedef signed      int         INT32;
typedef unsigned    int         UINT32;
typedef signed      __int64     INT64;
typedef unsigned    __int64     UINT64;

Original issue reported on code.google.com by arturbac...@gmail.com on 28 Apr 2009 at 2:34

GoogleCodeExporter commented 9 years ago
Thanks you for the report. This should be fixed in rev.22 now.
Please check whether it works for you.

Original comment by alexander.chemeris on 11 May 2009 at 6:23

GoogleCodeExporter commented 9 years ago

Original comment by ipse....@gmail.com on 11 May 2009 at 6:26