-
Notifications
You must be signed in to change notification settings - Fork 7
Address issues revealed during claude code review #60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -4,8 +4,8 @@ | |||||
| // Version macros for compile-time API version detection | ||||||
| // NB: see https://semver.org/ | ||||||
| #define ONI_VERSION_MAJOR 4 | ||||||
| #define ONI_VERSION_MINOR 5 | ||||||
| #define ONI_VERSION_PATCH 1 | ||||||
| #define ONI_VERSION_MINOR 6 | ||||||
| #define ONI_VERSION_PATCH 0 | ||||||
|
|
||||||
| #define ONI_MAKE_VERSION(major, minor, patch) \ | ||||||
| ((major) * 10000 + (minor) * 100 + (patch)) | ||||||
|
|
@@ -51,7 +51,7 @@ typedef struct { | |||||
| const oni_fifo_time_t time; // Frame time (ACQCLKHZ) | ||||||
| const oni_fifo_dat_t dev_idx; // Device index that produced or accepts the frame | ||||||
| const oni_fifo_dat_t data_sz; // Size in bytes of data buffer | ||||||
| char *data; // Raw data block | ||||||
| uint8_t *data; // Raw data block | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This change is causing some warnings (which on our linux build are treated as errors) because now we are mixing this uint8_t* with calls and buffers declared as char* (so there is a sign mismatch). Specifically, the issues are in Line 757 in b799fc9
Line 792 in b799fc9
function signatures and allocated buffers should be all changed to match this new type
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. or we could revert back to char since this is how its been done for centuries anyway. I'm fine with this. |
||||||
|
|
||||||
| } oni_frame_t; | ||||||
|
|
||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In my ONIv2 implementation I'm using
which basically does the same for power of 2 sizes in a very fast way
here is not critical but I'll be using it on some other more critical places, so it could be a good moment to standardize
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sounds good. i can change that.