Jump to content
  • C4267 Compiling Warning

    • Status: awaitingdevreply
      Main Category: Core / Mangos Daemon
      Sub-Category: Code Enhancement
      Version: 0.18 Milestone: 22 Priority: Low
      Implemented Version: 0.20

    warning C4267


    We need to look at a fix for the masses of warning given over all core when building in x64.

    warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data

    warning C4267: 'return' : conversion from 'size_t' to 'uint8', possible loss of data

    Relevent microsoft article on the issue: [url]http://msdn.microsoft.com/en-us/library/6kck0s93.aspx[/url]

    [QUOTE][COLOR=#2A2A2A][FONT=Segoe UI]When compiling with /Wp64, or when compiling on a 64-bit operating system, [I]type[/I] is 32 bits but size_t is 64 bits when compiling for 64-bit targets.[/FONT][/COLOR]
    [COLOR=#2A2A2A][FONT=Segoe UI]To fix this warning, use size_tinstead of a [I]type[/I].

    User Feedback

    Recommended Comments

    There are no comments to display.

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use