Skip to content
This repository was archived by the owner on Nov 2, 2020. It is now read-only.
This repository was 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

@itsthejb

Description

@itsthejb

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions