Skip to content
Snippets Groups Projects
Commit f8693d28 authored by deuce's avatar deuce
Browse files

Fix some buts for PString and Integer8 types.

parent 091b5e2d
No related branches found
No related tags found
No related merge requests found
......@@ -523,7 +523,7 @@ RecordFile.prototype.readField = function(fieldtype)
if(m !== null) {
tmp=this.file.readBin(1);
tmp2=this.file.read(parseInt(m[1]));
return(tmp.substr(0, tmp));
return(tmp2.substr(0, tmp));
}
return(null);
}
......@@ -607,7 +607,7 @@ RecordFile.prototype.writeField = function(val, fieldtype, def)
}
this.file.writeBin(val,1);
break;
case "Integer16":
case "Integer8":
if(val<0) {
val=0;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment