X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmHeaderEntry.cxx;fp=src%2FgdcmHeaderEntry.cxx;h=eda099ce8d65f185eac674ac5ef04a574ad6c93a;hb=b9ab8805bd66e5fc6dc74788435df455899eb661;hp=1b4338815b3511b90741d89fd8892863b9311113;hpb=7e26a215ebdc5467ec4354a926222058dfaf9344;p=gdcm.git diff --git a/src/gdcmHeaderEntry.cxx b/src/gdcmHeaderEntry.cxx index 1b433881..eda099ce 100644 --- a/src/gdcmHeaderEntry.cxx +++ b/src/gdcmHeaderEntry.cxx @@ -124,7 +124,10 @@ void gdcmHeaderEntry::Print(std::ostream & os) { if (v == "4294967295") // to avoid troubles in convertion sprintf (st," x(ffffffff)"); else - sprintf(st," x(%x)",(unsigned long)atof(v.c_str())); + { + //sprintf(st," x(%x)",(unsigned long)atof(v.c_str())); + sprintf(st," x(%x)", atoi(v.c_str()));//FIXME + } s << st; } s << std::endl;