Skip to content
This repository has been archived by the owner on Nov 2, 2020. It is now read-only.

floating point default values sometimes require 'f' suffix, but shouldn't need to #70

Open
itsthejb opened this issue Mar 5, 2015 · 3 comments

Comments

@itsthejb
Copy link
Contributor

itsthejb commented Mar 5, 2015

Hi,

Just updated from Cocoapods version 1.1.0 to :head to get the dictionary support feature, and found that I needed to update all of my previous default values for FBTweakValue with an explicit f suffix. Otherwise encoding would be NULL in the corresponding fb_tweak_entry, and I'd get a null pointer dereference in _FBTweakCreateWithEntry(). ie;

FBTweakValue(@"Category", @"Collection", @"Name", 0.25f);

works, whereas:

FBTweakValue(@"Category", @"Collection", @"Name", 0.25);

Causes the issue. This wasn't required in the previous version, and isn't (yet) noted in the docs, so though I should point this out.

Thanks!

@grp
Copy link
Contributor

grp commented Mar 5, 2015

Interesting, that sounds like a bug! Thanks for filing it.

@itsthejb
Copy link
Contributor Author

itsthejb commented Mar 8, 2015

Glad to help!

@ghost
Copy link

ghost commented Aug 4, 2015

Thank you for reporting this issue and appreciate your patience. We've notified the core team for an update on this issue. We're looking for a response within the next 30 days or the issue may be closed.

@grp grp changed the title Docs: floating point default values require 'f' suffix floating point default values sometimes require 'f' suffix, but shouldn't need to Sep 1, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants