Changeset a42cfe4 in tol


Ignore:
Timestamp:
Jul 31, 2015, 11:21:40 AM (11 years ago)
Author:
Jorge Pérez <josp.jorge@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
05325a3
Parents:
812f095
Message:

refs #1866,

datgrav.cpp:713:3: error: cast from 'HINSTANCE' to 'int' loses precision [-fpermissive]

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@6799 be4846ae-f051-483a-831f-b64e7d08527f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tol/btol/real_type/datgrav.cpp

    r812f095 ra42cfe4  
    2323#include <win_tolinc.h>
    2424#endif
     25
     26#include <stdint.h>
    2527
    2628#include <tol/tol_bdatgra.h>
    … …  
    703705{
    704706  if(CheckNonDeclarativeAction("ShellExecute")) { return; }
    705   contens_ = (BInt)ShellExecute
     707 
     708  HINSTANCE hi = ShellExecute
    706709  (
    707710    0,                     // handle to parent window
    … …  
    712715    SW_SHOWNORMAL              // whether file is shown when opened
    713716  );
     717  uintptr_t i  = reinterpret_cast<uintptr_t>(hi);
     718  contens_ = i;
    714719}
    715720
Note: See TracChangeset for help on using the changeset viewer.