VirtualBox

Changeset 18507 in vbox for trunk/src/VBox/Devices/Storage


Ignore:
Timestamp:
Mar 29, 2009 2:43:04 AM (16 years ago)
Author:
vboxsync
Message:

ISCSIHDDCore.cpp: size_t warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/ISCSIHDDCore.cpp

    r17970 r18507  
    946946                                |   (ISCSI_MY_VERSION << 8)     /* Maximum version. */
    947947                                |   ISCSIOP_LOGIN_REQ);     /* C=0 */
    948         aReqBHS[1] = RT_H2N_U32(cbBuf);     /* TotalAHSLength=0 */
     948        aReqBHS[1] = RT_H2N_U32((uint32_t)cbBuf);     /* TotalAHSLength=0 */
    949949        aReqBHS[2] = RT_H2N_U32(isid_tsih >> 32);
    950950        aReqBHS[3] = RT_H2N_U32(isid_tsih & 0xffffffff);
     
    13481348    cbData = 0;
    13491349    if (pRequest->enmXfer == SCSIXFER_FROM_TARGET)
    1350         cbData = pRequest->cbT2IData;
     1350        cbData = (uint32_t)pRequest->cbT2IData;
    13511351    else
    1352         cbData = pRequest->cbI2TData;
     1352        cbData = (uint32_t)pRequest->cbI2TData;
    13531353
    13541354    RTSemMutexRequest(pImage->Mutex, RT_INDEFINITE_WAIT);
     
    13581358    aReqBHS[0] = RT_H2N_U32(    ISCSI_FINAL_BIT | ISCSI_TASK_ATTR_ORDERED | ISCSIOP_SCSI_CMD
    13591359                            |   (pRequest->enmXfer << 21)); /* I=0,F=1,Attr=Ordered */
    1360     aReqBHS[1] = RT_H2N_U32(0x00000000 | (pRequest->cbI2TData & 0xffffff)); /* TotalAHSLength=0 */
     1360    aReqBHS[1] = RT_H2N_U32(0x00000000 | ((uint32_t)pRequest->cbI2TData & 0xffffff)); /* TotalAHSLength=0 */
    13611361    aReqBHS[2] = RT_H2N_U32(pImage->LUN >> 32);
    13621362    aReqBHS[3] = RT_H2N_U32(pImage->LUN & 0xffffffff);
     
    27042704    PISCSIIMAGE pImage = (PISCSIIMAGE)pBackendData;
    27052705    uint64_t lba;
    2706     size_t tls;
     2706    uint16_t tls;
    27072707    int rc;
    27082708
     
    27222722
    27232723    lba = uOffset / pImage->cbSector;
    2724     tls = cbToRead / pImage->cbSector;
     2724    tls = (uint16_t)(cbToRead / pImage->cbSector);
    27252725    SCSIREQ sr;
    27262726    uint8_t cdb[10];
     
    27662766    PISCSIIMAGE pImage = (PISCSIIMAGE)pBackendData;
    27672767    uint64_t lba;
    2768     size_t tls;
     2768    uint16_t tls;
    27692769    int rc;
    27702770
     
    27862786
    27872787    lba = uOffset / pImage->cbSector;
    2788     tls = cbToWrite / pImage->cbSector;
     2788    tls = (uint16_t)(cbToWrite / pImage->cbSector);
    27892789    SCSIREQ sr;
    27902790    uint8_t cdb[10];
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette