summaryrefslogtreecommitdiff
path: root/glcdgraphics/bitmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'glcdgraphics/bitmap.c')
-rw-r--r--glcdgraphics/bitmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/glcdgraphics/bitmap.c b/glcdgraphics/bitmap.c
index 0c4fd5d..cf10885 100644
--- a/glcdgraphics/bitmap.c
+++ b/glcdgraphics/bitmap.c
@@ -44,7 +44,7 @@ cColor cColor::ParseColor(std::string col) {
char* tempptr;
const char* str = col.c_str();
- uint32_t rv = (uint32_t) strtol(str, &tempptr, 16);
+ uint32_t rv = (uint32_t) strtoul(str, &tempptr, 16);
if ((str == tempptr) || (*tempptr != '\0'))
return cColor(cColor::ERRCOL);