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

HB_TAG_MAX: switched from 2^32-1 (UINT_MAX) to 2^31-1 (INT_MAX) #38

Closed
wants to merge 1 commit into from
Closed

Conversation

akolesen
Copy link

An error occurs when building with clang — HB_TAG_MAX value doesn't fit into the value field of struct GEnumValue:
hb-gobject-enums.cc:289:11: error: constant expression evaluates to 4294967295 which cannot be narrowed to type 'gint' (aka 'int')
[-Wc++11-narrowing]
{ _HB_SCRIPT_MAX_VALUE, "_HB_SCRIPT_MAX_VALUE", "-hb-script-max-value" },
^~~~~~~~~~~~~~~~~~~~
hb-gobject-enums.cc:289:11: note: override this message by inserting an explicit cast
{ _HB_SCRIPT_MAX_VALUE, "_HB_SCRIPT_MAX_VALUE", "-hb-script-max-value" },
^~~~~~~~~~~~~~~~~~~~
static_cast( )

An error occurs when building with clang — HB_TAG_MAX value doesn't fit into the `value` field of struct GEnumValue:
hb-gobject-enums.cc:289:11: error: constant expression evaluates to 4294967295 which cannot be narrowed to type 'gint' (aka 'int')
      [-Wc++11-narrowing]
        { _HB_SCRIPT_MAX_VALUE, "_HB_SCRIPT_MAX_VALUE", "-hb-script-max-value" },
          ^~~~~~~~~~~~~~~~~~~~
hb-gobject-enums.cc:289:11: note: override this message by inserting an explicit cast
        { _HB_SCRIPT_MAX_VALUE, "_HB_SCRIPT_MAX_VALUE", "-hb-script-max-value" },
          ^~~~~~~~~~~~~~~~~~~~
          static_cast<gint>(  )
@behdad behdad closed this in df99976 Jul 19, 2014
gpgreen pushed a commit to gpgreen/harfbuzz that referenced this pull request Jan 10, 2024
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.

1 participant