Comments (2)
The size of unsigned long is compiler based and not fixed. My compiler says that unsigned long is 32 bits so I am currently failing some tests because of this issue. I also have some other casting failures during the build process which may be from similar reasons that I have not gone into yet.
What sizes are needed here? Just 32 and 64? Or do we need to have a 16 as well?
from cn-cbor.
Looking at this, I see two ways of dealing with this question.
- define a new type cn_cbor_int which is of the correct size (using an ifdef in one place)
- push the ifdef in all of the code wherever it needs to be done.
Also we may want to configure if floating point is built in or not. Lots of systems don't need to have floating point code.
from cn-cbor.
Related Issues (20)
- Coverage for float code
- Ready for release?
- travis
- coveralls
- Add diagnostic format serializer
- Wrong use of index variable after increment in cbor_test.c
- Failing to build tests when CMAKE_BUILD_TYPE MinSizeRel on Linux
- Parser does not respect tag 24 - It does not defer the decoding of data with this tag HOT 2
- Need a serializer option to get size of buffer needed HOT 2
- ssize_t is from POSIX and not from the C standard HOT 1
- const behavior makes life difficult HOT 3
- cn-cbor not portable for MCU that doesn't support alignment HOT 6
- Make it build for windows HOT 2
- Strings not null-terminated after decode HOT 2
- cn_cbor_free is either overactive or needs to be even more overactive HOT 6
- Suggest renaming cn_cbor_index to cn_cbor_array_index HOT 2
- Define a field in struct cn_cbor.v that is of type uint8_t * HOT 1
- Consider indicating the size of floats in the API in the cb->length field
- Fuzz testing HOT 1
- is this project still maintained? HOT 8
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 cn-cbor.