Changeset 695 for trunk


Ignore:
Timestamp:
Mar 23, 2009, 12:44:20 AM (16 years ago)
Author:
イグトランス (egtra)
Message:

64ビットビルドで警告が出るコードの修正

Location:
trunk/ab5.0/ablib/src/Classes/System
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/ablib/src/Classes/System/IO/StreamWriter.ab

    r682 r695  
    5555#ifdef UNICODE
    5656        encoder.Encode(StrPtr(buf), buf.Length As SIZE_T, s, last)
    57         buf.Remove(0, buf.Length As SIZE_T)
     57        buf.Remove(0, buf.Length)
    5858#else
    5959        Dim p = StrPtr(buf)
  • trunk/ab5.0/ablib/src/Classes/System/Text/Encoding.ab

    r682 r695  
    490490        ' サロゲートペアや結合文字列 (Combining Character Sequence)の途中でバッファが途切れている場合に対応する
    491491        ' ToDo: エラー処理
    492         Dim mbLen = WideCharToMultiByte(cp, 0, src, size, 0, 0, 0, 0)
     492        Dim mbLen = WideCharToMultiByte(cp, 0, src, size As Long, 0, 0, 0, 0)
    493493        Dim mbBuf = GC_malloc_atomic(mbLen)
    494         WideCharToMultiByte(cp, 0, src, size, mbBuf, mbLen, 0, 0)
     494        WideCharToMultiByte(cp, 0, src, size As Long, mbBuf, mbLen, 0, 0)
    495495        s.Write(mbBuf, 0, mbLen)
    496496    End Sub
Note: See TracChangeset for help on using the changeset viewer.