Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.

LUCY-295 Change I32Array to use size_t (v2)#39

Merged
asfgit merged 7 commits intoapache:masterfrom
rectang:LUCY-295-i32array-size-v2
Apr 12, 2016
Merged

LUCY-295 Change I32Array to use size_t (v2)#39
asfgit merged 7 commits intoapache:masterfrom
rectang:LUCY-295-i32array-size-v2

Conversation

@rectang
Copy link
Contributor

@rectang rectang commented Apr 6, 2016

Change I32Array so that it uses a size_t to index into its array of 32-bit integers. This entails both changes to the class internals and to the internal API. (I32Array is not a public API.)

This pull requests adds one commit to fix the Go bindings compared to v1.

rectang added 7 commits April 6, 2016 13:03
Only the core module -- all usage sites need to be changed next.
Adapt these two very similar Query subclasses for the I32Array size
change.
Add/remove casts for functions where the width of a size argument has
changed.
These changes are a grab bag, some of which are easy to review and some
of which are more subtle.
int32_t i;
int64_t size = av_len(ints_av) + 1;
int32_t *ints;
int64_t i;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just realized that Perl switched from I32 to SSize_t for array sizes in 5.20. Ideally, we should add a typedef depending on the Perl version and use it for size and i. But this can be done later.

@asfgit asfgit merged commit c07e854 into apache:master Apr 12, 2016
asfgit pushed a commit that referenced this pull request Apr 12, 2016
Change I32Array so that it uses a size_t to index into its array of 32-bit
integers. This entails both changes to the class internals and to the internal
API. (I32Array is not a public API.)

This fixes #39.
@rectang rectang deleted the LUCY-295-i32array-size-v2 branch April 12, 2016 23:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants