UFO: Alien Invasion Issue Tracker
UFO: Alien Invasion
Go to the previous open issue
Go to the previous issue (open or closed)
star_faded.png
Please log in to bookmark issues
icon_project.png UFO: Alien Invasion / Closed Bug report #5345 Compile error on Mac OS 10.9: constant expression evaluates to 2147483653 which cannot be narrowed to type 'int'
Go to the next issue (open or closed)
Go to the next open issue
This issue has been closed with status "Closed" and resolution "RESOLVED".
Issue basics
  • Type of issue
    Bug report
  • Category
    Not determined
  • Targetted for
    2.5
  • Status
    Closed
  • Progress
  • Priority
    Not determined
User pain
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
Affected by this issue (0)
There are no items
People involved
Times and dates
  • Posted at
  • Last updated
  • Estimated time
    Not estimated
Issue details
  • Resolution
    RESOLVED
  • Reproducability
    Not determined
  • Severity
    Not determined
  • Complexity
    Not determined
  • Platform
    Not determined
  • Architecture
    Not determined
Attachments (0)
There is nothing attached to this issue
Duplicate issues (0)
This issue does not have any duplicates
Description
===> CXX [ufo] src/client/battlescape/cl_particle.cpp
src/client/battlescape/cl_particle.cpp:147:2: error: constant expression evaluates to 2147483653 which cannot be narrowed to type 'int'
[-Wc++11-narrowing]
PTL_ONLY_ONE_TYPE | V_FLOAT, PTL_ONLY_ONE_TYPE | V_FLOAT, PTL_ONLY_ONE_TYPE | V_FLOAT,
^~~~~~~~~~~~~~~~~~~~~~~~~~~
src/client/battlescape/cl_particle.cpp:73:28: note: expanded from macro 'PTL_ONLY_ONE_TYPE'
#define PTL_ONLY_ONE_TYPE (1<<31)
^
src/client/battlescape/cl_particle.cpp:147:2: note: override this message by inserting an explicit cast
PTL_ONLY_ONE_TYPE | V_FLOAT, PTL_ONLY_ONE_TYPE | V_FLOAT, PTL_ONLY_ONE_TYPE | V_FLOAT,
^~~~~~~~~~~~~~~~~~~~~~~~~~~
static_cast<int>( )
src/client/battlescape/cl_particle.cpp:73:28: note: expanded from macro 'PTL_ONLY_ONE_TYPE'
#define PTL_ONLY_ONE_TYPE (1<<31)
^
src/client/battlescape/cl_particle.cpp:147:31: error: constant expression evaluates to 2147483653 which cannot be narrowed to type
'int' [-Wc++11-narrowing]
PTL_ONLY_ONE_TYPE | V_FLOAT, PTL_ONLY_ONE_TYPE | V_FLOAT, PTL_ONLY_ONE_TYPE | V_FLOAT,
^~~~~~~~~~~~~~~~~~~~~~~~~~~
src/client/battlescape/cl_particle.cpp:73:28: note: expanded from macro 'PTL_ONLY_ONE_TYPE'
#define PTL_ONLY_ONE_TYPE (1<<31)
^
src/client/battlescape/cl_particle.cpp:147:31: note: override this message by inserting an explicit cast
PTL_ONLY_ONE_TYPE | V_FLOAT, PTL_ONLY_ONE_TYPE | V_FLOAT, PTL_ONLY_ONE_TYPE | V_FLOAT,
^~~~~~~~~~~~~~~~~~~~~~~~~~~
static_cast<int>( )
src/client/battlescape/cl_particle.cpp:73:28: note: expanded from macro 'PTL_ONLY_ONE_TYPE'
#define PTL_ONLY_ONE_TYPE (1<<31)
^
src/client/battlescape/cl_particle.cpp:147:60: error: constant expression evaluates to 2147483653 which cannot be narrowed to type
'int' [-Wc++11-narrowing]
PTL_ONLY_ONE_TYPE | V_FLOAT, PTL_ONLY_ONE_TYPE | V_FLOAT, PTL_ONLY_ONE_TYPE | V_FLOAT,
^~~~~~~~~~~~~~~~~~~~~~~~~~~
src/client/battlescape/cl_particle.cpp:73:28: note: expanded from macro 'PTL_ONLY_ONE_TYPE'
#define PTL_ONLY_ONE_TYPE (1<<31)
^
src/client/battlescape/cl_particle.cpp:147:60: note: override this message by inserting an explicit cast
PTL_ONLY_ONE_TYPE | V_FLOAT, PTL_ONLY_ONE_TYPE | V_FLOAT, PTL_ONLY_ONE_TYPE | V_FLOAT,
^~~~~~~~~~~~~~~~~~~~~~~~~~~
static_cast<int>( )
src/client/battlescape/cl_particle.cpp:73:28: note: expanded from macro 'PTL_ONLY_ONE_TYPE'
#define PTL_ONLY_ONE_TYPE (1<<31)
^
src/client/battlescape/cl_particle.cpp:152:2: error: constant expression evaluates to 2147483657 which cannot be narrowed to type 'int'
[-Wc++11-narrowing]
PTL_ONLY_ONE_TYPE | V_STRING, PTL_ONLY_ONE_TYPE | V_STRING, PTL_ONLY_ONE_TYPE | V_STRING, PTL_ONLY_ONE_TYPE | V_STRING
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/client/battlescape/cl_particle.cpp:73:28: note: expanded from macro 'PTL_ONLY_ONE_TYPE'
#define PTL_ONLY_ONE_TYPE (1<<31)
^
src/client/battlescape/cl_particle.cpp:152:2: note: override this message by inserting an explicit cast
PTL_ONLY_ONE_TYPE | V_STRING, PTL_ONLY_ONE_TYPE | V_STRING, PTL_ONLY_ONE_TYPE | V_STRING, PTL_ONLY_ONE_TYPE | V_STRING
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
static_cast<int>( )
src/client/battlescape/cl_particle.cpp:73:28: note: expanded from macro 'PTL_ONLY_ONE_TYPE'
#define PTL_ONLY_ONE_TYPE (1<<31)
^
src/client/battlescape/cl_particle.cpp:152:32: error: constant expression evaluates to 2147483657 which cannot be narrowed to type
'int' [-Wc++11-narrowing]
PTL_ONLY_ONE_TYPE | V_STRING, PTL_ONLY_ONE_TYPE | V_STRING, PTL_ONLY_ONE_TYPE | V_STRING, PTL_ONLY_ONE_TYPE | V_STRING
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/client/battlescape/cl_particle.cpp:73:28: note: expanded from macro 'PTL_ONLY_ONE_TYPE'
#define PTL_ONLY_ONE_TYPE (1<<31)
^
src/client/battlescape/cl_particle.cpp:152:32: note: override this message by inserting an explicit cast
PTL_ONLY_ONE_TYPE | V_STRING, PTL_ONLY_ONE_TYPE | V_STRING, PTL_ONLY_ONE_TYPE | V_STRING, PTL_ONLY_ONE_TYPE | V_STRING
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
static_cast<int>( )
src/client/battlescape/cl_particle.cpp:73:28: note: expanded from macro 'PTL_ONLY_ONE_TYPE'
#define PTL_ONLY_ONE_TYPE (1<<31)
^
src/client/battlescape/cl_particle.cpp:152:62: error: constant expression evaluates to 2147483657 which cannot be narrowed to type
'int' [-Wc++11-narrowing]
PTL_ONLY_ONE_TYPE | V_STRING, PTL_ONLY_ONE_TYPE | V_STRING, PTL_ONLY_ONE_TYPE | V_STRING, PTL_ONLY_ONE_TYPE | V_STRING
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/client/battlescape/cl_particle.cpp:73:28: note: expanded from macro 'PTL_ONLY_ONE_TYPE'
#define PTL_ONLY_ONE_TYPE (1<<31)
^
src/client/battlescape/cl_particle.cpp:152:62: note: override this message by inserting an explicit cast
PTL_ONLY_ONE_TYPE | V_STRING, PTL_ONLY_ONE_TYPE | V_STRING, PTL_ONLY_ONE_TYPE | V_STRING, PTL_ONLY_ONE_TYPE | V_STRING
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
static_cast<int>( )
src/client/battlescape/cl_particle.cpp:73:28: note: expanded from macro 'PTL_ONLY_ONE_TYPE'
#define PTL_ONLY_ONE_TYPE (1<<31)
^
src/client/battlescape/cl_particle.cpp:152:92: error: constant expression evaluates to 2147483657 which cannot be narrowed to type
'int' [-Wc++11-narrowing]
PTL_ONLY_ONE_TYPE | V_STRING, PTL_ONLY_ONE_TYPE | V_STRING, PTL_ONLY_ONE_TYPE | V_STRING, PTL_ONLY_ONE_TYPE | V_STRING
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/client/battlescape/cl_particle.cpp:73:28: note: expanded from macro 'PTL_ONLY_ONE_TYPE'
#define PTL_ONLY_ONE_TYPE (1<<31)
^
src/client/battlescape/cl_particle.cpp:152:92: note: override this message by inserting an explicit cast
PTL_ONLY_ONE_TYPE | V_STRING, PTL_ONLY_ONE_TYPE | V_STRING, PTL_ONLY_ONE_TYPE | V_STRING, PTL_ONLY_ONE_TYPE | V_STRING
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
static_cast<int>( )
src/client/battlescape/cl_particle.cpp:73:28: note: expanded from macro 'PTL_ONLY_ONE_TYPE'
#define PTL_ONLY_ONE_TYPE (1<<31)
^
src/client/battlescape/cl_particle.cpp:1431:10: warning: cast from 'byte *' (aka 'unsigned char *') to 'ptlCmd_t **'
(aka 'ptlCmd_s **') increases required alignment from 1 to 8 [-Wcast-align]
pc = (ptlCmd_t**) ((byte*) pd + pf_values[i]);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning and 7 errors generated.
make[1]: *** [debug-darwin-i386/ufo/client/battlescape/cl_particle.cpp.o] Error 1
make: *** [darwin-config.h] Error 2
make: *** Deleting file `darwin-config.h'
Steps to reproduce this issue
Nothing entered.
Todos (0 / 0)
Issue created
footer_logo.png The Bug Genie 4.3.1 | Support | Feedback spinning_16.gif