Skip to content
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

Fixed libb64 decoder. #2883

Merged
merged 3 commits into from
Jan 20, 2017
Merged

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

@igrr igrr 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.


int base64_decode_value(char value_in)
{
return base64_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
Contributor Author

Choose a reason for hiding this comment

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

Oops, sorry for this.

@igrr igrr merged commit d85e783 into esp8266:master Jan 20, 2017
@rodionkvashnin rodionkvashnin 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
Implements: esp8266/Arduino#2883
Fixes: #313
Fixes: #344
blue-2357 pushed a commit to blue-2357/arduino-esp32 that referenced this pull request Jul 17, 2024
Sign up for free to 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