VC 7 mods

svn path=/trunk/boinc/; revision=2912
This commit is contained in:
Eric J. Korpela 2004-01-20 02:51:50 +00:00
parent 1bcda73dbb
commit 72ce699dda
1 changed files with 8 additions and 1 deletions

View File

@ -19,6 +19,9 @@
// //
// Revision History // Revision History
// $Log$ // $Log$
// Revision 1.26 2004/01/20 02:51:50 korpela
// VC 7 mods
//
// Revision 1.25 2003/12/01 23:42:05 korpela // Revision 1.25 2003/12/01 23:42:05 korpela
// Under some compilers template parameters of type char [] weren't getting // Under some compilers template parameters of type char [] weren't getting
// cast to char *. Template functions now use &(array[0]) to ensure correct // cast to char *. Template functions now use &(array[0]) to ensure correct
@ -547,7 +550,8 @@ unsigned char decode_char(const char *s) {
std::string x_csv_encode_char(const unsigned char *bin, size_t nelements) { std::string x_csv_encode_char(const unsigned char *bin, size_t nelements) {
std::ostringstream rv(""); std::ostringstream rv("");
long lastlen=0,i; long lastlen=0;
size_t i;
rv << std::endl << xml_indent(2); rv << std::endl << xml_indent(2);
for (i=0;i<(nelements-1);i++) { for (i=0;i<(nelements-1);i++) {
unsigned int ival=bin[i]; unsigned int ival=bin[i];
@ -564,6 +568,9 @@ std::string x_csv_encode_char(const unsigned char *bin, size_t nelements) {
// //
// $Log$ // $Log$
// Revision 1.26 2004/01/20 02:51:50 korpela
// VC 7 mods
//
// Revision 1.25 2003/12/01 23:42:05 korpela // Revision 1.25 2003/12/01 23:42:05 korpela
// Under some compilers template parameters of type char [] weren't getting // Under some compilers template parameters of type char [] weren't getting
// cast to char *. Template functions now use &(array[0]) to ensure correct // cast to char *. Template functions now use &(array[0]) to ensure correct