size_t conversion warnings when building on windows 64 bit

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
boxerab
Posts: 11
Joined: Fri, 2014-02-21, 17:16

size_t conversion warnings when building on windows 64 bit

#1 Post by boxerab »

Hello,
First of all, I was very pleased to see that the *only* type of warning I get when building
under Visual Studio 12 for windows 64 bit is the following:

Code: Select all

conversion from 'size_t' to 'unsigned long', possible loss of data
so the library is in good shape with respect to warnings.

But, I do get hundreds of these types of warnings; are you concerned about this? Is there a plan to fix this?
I imagine that probably in all cases, the library user is in no danger of truncating data, but still it would be nice
to have zero warnings :)

Thanks,
Aaron

Jan Schlamelcher
OFFIS DICOM Team
OFFIS DICOM Team
Posts: 318
Joined: Mon, 2014-03-03, 09:51
Location: Oldenburg, Germany

Re: size_t conversion warnings when building on windows 64 b

#2 Post by Jan Schlamelcher »

Hi Aaron,

we know about this issue and i've already been working on a patch. We are currently discussing which parts of our API shall be changed to "std::size_t" and which occurences of "unsigned long" will be replaced by "Uint32" and appropriate usage of "OFstatic_cast".

Best,
Jan

boxerab
Posts: 11
Joined: Fri, 2014-02-21, 17:16

Re: size_t conversion warnings when building on windows 64 b

#3 Post by boxerab »

Thanks, Jan. I think it will both astonish and please toolkit users when they see
absolutely no warnings after a build.

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest