Comments (4)
Summary: When unwrapping a Struct
's members using native code, only the last member's value is correct. The values of preceding members are incorrect and appear to be offset by an exponential amount, with the offset increasing as more members are added.
from sdk.
Seems it isn't a bug
No worries, @codesculpture.
Seems like we can close it as working-as-intended.
from sdk.
void unWrapPointer(int* a) {
printf("%d\n", *a);
}
Shouldn't this code be using int8_t* a
as argument instead of int* a
?
from sdk.
Yup @mkustermann , the two int's are different here which is the C's int
is 32bit but in the struct there was Int8
which is 8bit.
If i correctly map the int types, the results are expected. Seems it isn't a bug
Please someone confirm
Sorry for it @mkustermann @dcharkes
from sdk.
Related Issues (20)
- Fix the nullability of `InvalidType`
- [js interop] interop objects sometimes implement Dart types
- Analyzer thinks private getter in mixin is not referenced, even though it is HOT 1
- Issue: Dart Compile JS Fails to Assign External JS Function HOT 2
- [dart2wasm] RuntimeError: unreachable HOT 5
- [analyzer] Wrong error for an enum with non-final external variable
- [js-interop] Help users using JS maps HOT 3
- Support likely() and unlikely() hints for AOT code optimization HOT 1
- [JS-interop] Extension for JSBigint HOT 9
- Attempting to call a DTD service without a dot in the name results in a bad error
- CTRL + Click `part of 'file.dart';` directive doesn't work without `part` directive HOT 2
- [Dart VM] Cannot set pause_isolates_on_exit at runtime HOT 1
- Obfuscation: A need for serious commitment in dart and flutter HOT 7
- bug: analyzer does not report "inherits multiple members named with incompatible signatures." error but compilation fails. HOT 1
- [CP] [stable] Fix analysis server plugins not receiving setContextRoots (or having wrong roots) HOT 2
- dart/runtime/vm/kernel_binary.h: 435: error: Legacy nullability is not supported. HOT 10
- Flaky ffi test crashes on vm-ffi-qemu-linux-release-riscv64
- [Analyzer] Internal error: Exception while using a AvoidRedundantArgumentValues to visit a FunctionExpressionInvocationImpl HOT 1
- [native assets] Use `AddDllDirectory` on native assets dir(s) to enable dynamic linking HOT 2
- Analyzer does not navigate up in the directory tree looking for closest analysis_options.yaml file 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 sdk.