Prepare for 2.81 release, increase version numbers

Fixed DNA serialization for C++11: avoid negative char values
Fixes 617. (needs to be tested)
This commit is contained in:
erwin.coumans
2012-09-11 03:49:50 +00:00
parent 8c56528a79
commit 1b7642f0f5
8 changed files with 111 additions and 107 deletions

View File

@@ -910,7 +910,8 @@ void dna_write(FILE *file, void *pntr, int size)
for (i = 0 ; i < size ; i++)
{
fprintf(file, "%d,", data[i]);
unsigned char c =data[i];
fprintf(file, "%d,", c);
linelength++;
if (linelength >= MAX_DNA_LINE_LENGTH) {
fprintf(file, "\n");