Skip to content

Commit

Permalink
Merge pull request lexborisov#20 from f2404/f2404-patch-2
Browse files Browse the repository at this point in the history
Prevent constant overflow
  • Loading branch information
lexborisov committed Mar 1, 2016
2 parents 1eee388 + 572b5d8 commit c42ce6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/myhtml/encoding.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ struct myhtml_encoding_result {
typedef myhtml_encoding_result_t;

struct myhtml_encoding_trigram {
const char trigram[3];
const unsigned char trigram[3];
size_t value;
}
typedef myhtml_encoding_trigram_t;
Expand Down
2 changes: 1 addition & 1 deletion source/myhtml/encoding.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ struct myhtml_encoding_result {
typedef myhtml_encoding_result_t;

struct myhtml_encoding_trigram {
const char trigram[3];
const unsigned char trigram[3];
size_t value;
}
typedef myhtml_encoding_trigram_t;
Expand Down

0 comments on commit c42ce6f

Please sign in to comment.