s size_t additions


i have formula warning giveaway vs.net gcc, i have formula 64-bit ready.



today i wrote small way deals memory buffers provides opening information around file-style interface (e.g. review bytes, bytes, find around etc.).



as data-type tide review position distance i used size_t given seems many healthy choice. i around warnings ought work 64-bit well.



just case: structure looks this:



typedef struct
{
unsigned bake * m_data;
size_t m_currentreadposition;
size_t m_datasize;
} mymemoryfile;


the signedness size_t seems tangible practice. google code-search current that.



now i'm dilemma: i wish check additions size_t s since i have understanding user reputed information third jubilee libraries code. however, yield check i have know sign-ness. creates vast inadequacy implementation.



so - heck should i such formula height compiler individualist way?



can i check signedness size_t during run compile-time? solve problem. maybe size_t wasn't best thought initial place.



any ideas?



edit: i'm looking fortitude c-language!



Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?