Changeset 245

Show
Ignore:
Timestamp:
04/03/07 20:30:49 (1 year ago)
Author:
ug
Message:

Fixed long long format string for MSVC/Borland builder.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 06/libkombilo/search.cpp

    r244 r245  
    24452445 
    24462446    char sql[100]; 
     2447#if (defined(__BORLANDC__) || defined(_MSC_VER)) 
     2448    sprintf(sql, "select gameid,hit from algo_hash_full_%d where hash = %I64d", boardsize, hashCode); 
     2449#else 
    24472450    sprintf(sql, "select gameid,hit from algo_hash_full_%d where hash = %lld", boardsize, hashCode); 
     2451#endif 
    24482452    // printf("hc %lld, %s\n", hashCode, sql); 
    24492453    pair<vpsip, int> rN(results, N); 
     
    27012705  int fl2 = fl; 
    27022706  char buf[100]; 
     2707#if (defined(__BORLANDC__) || defined(_MSC_VER)) 
     2708  sprintf(buf, "select gameid,position,hash from algo_hash_%d_%s where hash = %I64d",  
     2709      boardsize, dbnameext.c_str(), hashCode); 
     2710#else 
    27032711  sprintf(buf, "select gameid,position,hash from algo_hash_%d_%s where hash = %lld",  
    27042712      boardsize, dbnameext.c_str(), hashCode); 
     2713#endif 
    27052714  string sql = buf; 
    27062715 
     
    27172726 
    27182727    if (hashCode != hashCode2) { 
     2728#if (defined(__BORLANDC__) || defined(_MSC_VER)) 
     2729      sprintf(buf, " or hash = %I64d", hashCode2); 
     2730#else 
    27192731      sprintf(buf, " or hash = %lld", hashCode2); 
     2732#endif 
    27202733      sql += buf; 
    27212734    }