Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cps_class_attr_is_embedded() returns wrong data type #25

Open
mabnhdev opened this issue Nov 15, 2016 · 0 comments
Open

cps_class_attr_is_embedded() returns wrong data type #25

mabnhdev opened this issue Nov 15, 2016 · 0 comments

Comments

@mabnhdev
Copy link

The function cps_class_attr_is_embedded() is defined to return a bool type. In the "false" case, it returns a nullptr with no cast. This is a build error with certain compiles.

I suggest the following fix.

Change...
if (p==nullptr) return nullptr;
To...
if (p==nullptr) return false;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant