Giter Site home page Giter Site logo

Comments (3)

fcanas avatar fcanas commented on September 28, 2024

Have you observed any ill behavior because of this?

self.possibleDrawerDirection cannot be clear on both the horizontal and vertical directions. If so, the behavior is completely undefined. You'd be patching an analyzer warning, but not actually correcting behavior. It may be more correct to assert that possibleDrawerDirection must have either horizontal or vertical components.

from msdynamicsdrawerviewcontroller.

Timac avatar Timac commented on September 28, 2024

I am testing MSDynamicsDrawerViewController and I haven't see any ill behavior yet.

When I evaluate source code, I always run the Clang Static Analyzer on it before doing anything else. When I see source code containing hundreds of memory leaks or other analyzer warnings I know the code is bad and it is not worth looking at it.

Regarding the issue, I would initialize panDelta to 0.0 to make sure there is no undefined behavior and to avoid the analyzer warning. I haven't looked at 'self.possibleDrawerDirection' but having an assert for undefined cases is always good.

from msdynamicsdrawerviewcontroller.

erichoracek avatar erichoracek commented on September 28, 2024

Fixed in 1.3.2.

from msdynamicsdrawerviewcontroller.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.