Skip to content

Conversation

@rodionkvashnin
Copy link
Contributor

Libb64 decoder works when "char" type is signed. In esp8266 xtensa gcc "char" is unsigned, so libb64 decoder does not work. In the implementation file I replaced "char" to "int8_t" and created function wrappers in order to keep existing interface.

I tested it, it works!

Libb64 decoder works when "char" type is signed. In esp8266 xtensa gcc "char" is unsigned, so libb64 decoder does not work. In the implementation file I replaced "char" to "int8_t" and created function wrappers in order to keep existing interface.
@codecov-io
Copy link

codecov-io commented Jan 19, 2017

Current coverage is 27.80% (diff: 100%)

Merging #2883 into master will not change coverage

@@ master #2883 diff @@ ========================================== Files 20 20 Lines 3625 3625 Methods 335 335 Messages 0 0 Branches 656 656 ========================================== Hits 1008 1008 Misses 2441 2441 Partials 176 176 

Powered by Codecov. Last update 9791a48...277492a

Copy link
Member

@igrrigrr left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this, just one minor note regarding indentation consistency.


intbase64_decode_value(charvalue_in)
{
returnbase64_decode_value_signed(*((int8_t*) &value_in));
Copy link
Member

Choose a reason for hiding this comment

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

the rest of the file doesn't seem to use tabs for indentation

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Oops, sorry for this.

@igrrigrr merged commit d85e783 into esp8266:masterJan 20, 2017
@rodionkvashninrodionkvashnin deleted the fix-libb64-decoder branch January 20, 2017 09:56
me-no-dev added a commit to espressif/arduino-esp32 that referenced this pull request May 6, 2017
blue-2357 pushed a commit to blue-2357/arduino-esp32 that referenced this pull request Jul 17, 2024
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@rodionkvashnin@codecov-io@igrr