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

LUCY-302 NumUtils warnings#43

Merged
asfgit merged 6 commits intoapache:masterfrom
rectang:LUCY-302-numutils-warnings
Apr 25, 2016
Merged

LUCY-302 NumUtils warnings#43
asfgit merged 6 commits intoapache:masterfrom
rectang:LUCY-302-numutils-warnings

Conversation

@rectang
Copy link
Contributor

@rectang rectang commented Apr 22, 2016

In NumberUtils.cfh:

  • Widen the array index type for addressing 1-bit, 2-bit, and 4-bit arrays.
  • Address a few (false positive) compiler warnings from -Wconversion.

rectang added 6 commits April 21, 2016 16:45
The result being truncated will never be wider than 8 bits.
Both versions pass tests, but this doesn't make -Wconversion complain.
Change the tick (array index) parameter for 1-bit, 2-bit, and 4-bit
integer array manipulation routines from uint32_t to size_t.
Make appropriate casts or other adjustments to avoid warnings with
regards to NumUtil 1-bit, 2-bit and 4-bit integer array manipulation
routines.
@nwellnhof
Copy link
Contributor

Looks good.

@asfgit asfgit merged commit dd6e79c into apache:master Apr 25, 2016
asfgit pushed a commit that referenced this pull request Apr 25, 2016
In NumberUtils.cfh:

* Widen the array index type for addressing 1-bit, 2-bit, and 4-bit arrays.
* Address a few (false positive) compiler warnings from `-Wconversion`.

This fixes #43.
@rectang rectang deleted the LUCY-302-numutils-warnings branch April 25, 2016 19:13
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