Skip to content

Commit

Permalink
Fix compile errors on Teensy 2.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-matera committed Aug 10, 2016
1 parent 41ea726 commit 5d5ff39
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/istream_helpers
Expand Up @@ -322,7 +322,7 @@ namespace std{
isneg=false;
temp.erase(0,1);
}
int dec = temp.find('.', 0);
unsigned int dec = temp.find('.', 0);
if (dec == string::npos) {
var = atoi(temp.c_str());
}else{
Expand All @@ -349,7 +349,7 @@ namespace std{
isneg=false;
temp.erase(0,1);
}
int dec = temp.find('.', 0);
unsigned int dec = temp.find('.', 0);
if (dec == string::npos) {
var = atoi(temp.c_str());
}else{
Expand Down
1 change: 1 addition & 0 deletions src/ostream_helpers
Expand Up @@ -22,6 +22,7 @@
#include <ios>
#include <cctype>
#include <string>
#include <math.h> // for floor()

#ifndef __STD_HEADER_OSTREAM_HELPERS
#define __STD_HEADER_OSTREAM_HELPERS 1
Expand Down

0 comments on commit 5d5ff39

Please sign in to comment.