Do not store signed value in unsigned variable. Took me an hour to find :-/
This commit is contained in:
parent
e6b3afbab0
commit
f1b4da67c0
|
@ -103,7 +103,7 @@ int readFile(char * filename, char * data, int len){
|
|||
};
|
||||
|
||||
int readTextFile(char * filename, char * data, int len){
|
||||
UINT readbytes;
|
||||
int readbytes;
|
||||
|
||||
readbytes=readFile(filename,data,len-1);
|
||||
if(len>=0)
|
||||
|
|
Loading…
Reference in New Issue