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

make PXR_VERSION a valid / comparable c/c++ integer #886

Merged
merged 1 commit into from
Jul 17, 2019

Conversation

pmolodo
Copy link
Contributor

@pmolodo pmolodo commented Jun 24, 2019

Description of Change(s)

currently, PXR_VERSION is defined as "0197" - which isn't even a valid
c/c++ integer literal, as the '0' will cause it to be interpreted as an
octal value, but '9' isn't an octal digit. Even if it didn't have the
leading 0, however, it still wouldn't be useful for comparing numerically,
because we would have, ie, 19.07 < 18.11:

197 < 1811

Fixes Issue(s)

  • PXR_VERSION macro not a valid integer literal

currently, PXR_VERSION is defined as "0197" - which isn't even a valid
c/c++ integer literal, as the '0' will cause it to be interpreted as an
octal value, but '9' isn't an octal digit.  Even if it didn't have the
leading 0, however, it still wouldn't be useful for comparing numerically,
because we would have, ie, 19.07 < 18.11:

197 < 1811
@jilliene
Copy link

Filed as internal issue #USD-5390

@c64kernal
Copy link
Contributor

Great sug, thanks @elrond79 -- don't worry about the merge conflict, we'll take care of it.

@pixar-oss pixar-oss merged commit f75a464 into PixarAnimationStudios:dev Jul 17, 2019
pixar-oss added a commit that referenced this pull request Jul 17, 2019
make PXR_VERSION a valid / comparable c/c++ integer

(Internal change: 1987050)
AdamFelt pushed a commit to autodesk-forks/USD that referenced this pull request Apr 16, 2024
…lve/dev

Revert "OGSMOD-4774 : Sync USD develop branch to newest public USD - Q1S4 (PixarAnimationStudios#875)"
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

Successfully merging this pull request may close these issues.

5 participants