Re: Another hyperspace bug found --> random and Neural Net
"Ger Hobbelt" <[email protected]>
| Newsgroups | gmane.mail.spam.crm114 |
|---|---|
| Message-ID | <[email protected]> |
On Thu, Jun 19, 2008 at 5:04 PM, Bill Yerazunis <[email protected]> wrote: > > From: Marcus Kool <marcus.kool-x/J+dzphU+SB39Oa/[email protected]> > > Moral of the story: do not mix types, they can cause a lot of headaches. > > Therein lies the problem- for portability reasons (yes, I've been > convinced by Ger and others) I'm trying to at least do _new_ > development using fixed-width types like uint32_t, rather than the > ambiguous and platform-dependent types like "unsigned long". > > But - when I do that, I find that *none* of the calls pass unscathed > through GCC. Finding _real_ issues when flooded with meaningless, > ignorable error messages is just bad practice. Have patience. I didn't get there in a single day either. Changing habits is the hardest and I congratulate you on doing so. You may wish to post your sources (the WGET copy maybe?) and the warnings and let us/me have a look at it. I just had a look at your new FSCM and it's heading in the right direction! It only needs a bit of 'sed s/long/int/g' and GerH and BillY builds are a whole lot closer to a snug fit again. :-)) For education, you may wish to download the GerH code and have a look at what I did (just read a bit of code). One important extra move I did: anything which is a hash is a special type: typedef uint32_t crmhash_t; so that I can use crmhash_t everywhere where a hash is processed or produced. This has the advantage that I get warned when I mix hashes with other stuff. When I wish to migrate to 64-bit hashes application wide, it's one typedef that is to be changed and strnhash() and I am done. That how structure is done at the lowest level. Anyway, sounds like you, Bill, are pulling hairs you should not. Post the code and the warnings and I'll have a look pronto. -- Met vriendelijke groeten / Best regards, Ger Hobbelt -------------------------------------------------- web: http://www.hobbelt.com/ http://www.hebbut.net/ mail: [email protected] mobile: +31-6-11 120 978 -------------------------------------------------- ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php