Remove implicit CharacterRange constructors

Also fix misc smaller lint errors
This commit is contained in:
Max Brunsfeld 2014-08-23 14:43:49 -07:00
parent 0bb5663f0f
commit 9338249075
11 changed files with 53 additions and 66 deletions

View file

@ -1,6 +1,5 @@
#include "compiler/util/string_helpers.h"
#include <vector>
#include <stdio.h>
namespace tree_sitter {
namespace util {
@ -46,7 +45,7 @@ string escape_char(char character) {
return string("'") + character + "'";
} else {
char buffer[5];
sprintf(buffer, "%d", int(character));
snprintf(buffer, sizeof(buffer), "%d", static_cast<int>(character));
return string(buffer);
}
}