projects
/
SXSI
/
XMLTree.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
TaggedFollBelow was complete crap (by me). Rewrote it more efficiently.
[SXSI/XMLTree.git]
/
libcds
/
tests
/
text_to_int.cpp
diff --git
a/libcds/tests/text_to_int.cpp
b/libcds/tests/text_to_int.cpp
index
200fbdf
..
74f676d
100644
(file)
--- a/
libcds/tests/text_to_int.cpp
+++ b/
libcds/tests/text_to_int.cpp
@@
-54,7
+54,7
@@
int main(int argc, char ** argv) {
for(uint i=0;i<n;i++) {
uchar c;
for(uint i=0;i<n;i++) {
uchar c;
- fread(&c,sizeof(uchar),1,fp);
+
text[i] =
fread(&c,sizeof(uchar),1,fp);
text[i] = (uint)c;
}
fclose(fp);
text[i] = (uint)c;
}
fclose(fp);
@@
-65,7
+65,7
@@
int main(int argc, char ** argv) {
return 1;
}
return 1;
}
- fwrite(text,sizeof(uint),n,out);
+
n =
fwrite(text,sizeof(uint),n,out);
fclose(out);
delete [] text;
fclose(out);
delete [] text;