Changeset 19207


Ignore:
Timestamp:
03/18/15 12:10:34 (10 years ago)
Author:
glperez
Message:

CHG: Explicitly cast int to double to fix ambiguity issue on Windows build.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/cores/ProcessArguments.cpp

    r19191 r19207  
    2727        /*Recover myrank: */
    2828        my_rank=IssmComm::GetRank();
    29         rank_length= (my_rank == 0 ? 1 : (int)(log10(my_rank)+1)); /*length of string "my_rank" */
     29        rank_length= (my_rank == 0 ? 1 : (int)(log10(static_cast<double>(my_rank))+1)); /*length of string "my_rank" */
    3030
    3131        /*Get requested solution*/
Note: See TracChangeset for help on using the changeset viewer.