Commit 52b38d73 by Rudolf

Make freq unsigned

This value should never be less than 0
parent bf140947
Showing with 1 additions and 1 deletions
...@@ -11,7 +11,7 @@ struct tree { ...@@ -11,7 +11,7 @@ struct tree {
struct tree *left; struct tree *left;
struct tree *right; struct tree *right;
unsigned char ch; unsigned char ch;
int freq; unsigned int freq;
}; };
struct tree *insert_simple_tree(int character, int frequency); struct tree *insert_simple_tree(int character, int frequency);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment