Fixing adding error
This commit is contained in:
parent
fbe11df4a8
commit
7b92a826ba
@ -16,7 +16,7 @@ void destroy_station(struct station* station){
|
|||||||
}
|
}
|
||||||
|
|
||||||
int select_track(struct station* station, const char* target){
|
int select_track(struct station* station, const char* target){
|
||||||
int hash = 0;
|
unsigned int hash = 0;
|
||||||
for (int i = 0; i < strlen(target); i++)
|
for (int i = 0; i < strlen(target); i++)
|
||||||
{ hash += target[i] + (hash<<6) + (hash<<16) - hash;
|
{ hash += target[i] + (hash<<6) + (hash<<16) - hash;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user