Comments (3)
__int8 is internally typedefed to 'char', which is a separate type from 'signed
char'.
Because the sign of 'char' is implementation defined by the C99 standard,
it is necessary to replace the line:
typedef __int8 int8_t;
to be:
typedef signed __int8 int8_t;
in order to be standards compliant.
This bug is significant because 'signed char' and 'char' must be specialized for
separately even if 'char' is signed, and that results in bugs if this line is
not
fixed as shown above.
Original comment by [email protected]
on 16 Sep 2009 at 10:02
from msinttypes.
Yep, exactly. Finding this bug was a huge pain in the ass; I use this header
in my
Duke Nukem 3D port (it's called EDuke32) and it lead to all kinds of strange
crap
occurring with completely nonsensical debugger output.
Hope this project isn't dead/hope this important bug doesn't go ignored!
Actually, I
hope Microsoft pulls their collective heads out of their asses and just
implements
most of C99, but fat chance that's ever going to happen.
Original comment by [email protected]
on 17 Sep 2009 at 7:00
from msinttypes.
Sorry guys, this project is not dead, I just have not so much free time.
You know, the best way to fix a bug is to attach a patch to bug report ;)
Anyway, this should be fixed now in r25. Please check it out.
Original comment by alexander.chemeris
on 17 Sep 2009 at 7:52
- Changed state: Fixed
from msinttypes.
Related Issues (16)
- Compiler error when trying to compile a project using SDL and FFmpeg HOT 4
- Compiler warnings when included in conjunction with VS2010's stdint.h. HOT 2
- misprint in stdint.h causing vc6 compilation problem HOT 1
- stdint.h is not available with Visual Studio 2012 HOT 3
- #include <stdint.h> HOT 2
- #ifdef __cplusplus in stdint.h HOT 1
- Fix trailing whitespace
- Match the msvc stdint header for fast int types
- [VS 2008] SmartDevice Win32 Project: second C linkage of overloaded function HOT 8
- incorect type declarations on evc4 HOT 2
- Build error when stdint.h is not in the project's include paths list HOT 1
- fast types should match native word size HOT 1
- license bug HOT 1
- INTn_MIN, INTn_MAX violate C99 specification
- Annoying compilation warnings HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from msinttypes.