Changeset 100032 in vbox for trunk/src/VBox/Runtime/common/misc/fdt.cpp
- Timestamp:
- Jun 1, 2023 11:09:52 AM (21 months ago)
- svn:sync-xref-src-repo-rev:
- 157710
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/misc/fdt.cpp
r100031 r100032 1130 1130 return VINF_SUCCESS; 1131 1131 1132 size_t cbNew = RT_ALIGN_32(pThis->cbStrings + cch, 256);1132 uint32_t cbNew = RT_ALIGN_32(pThis->cbStrings + cch, 256); 1133 1133 void *pvStringsNew = RTMemReallocZ(pThis->paszStrings, pThis->cbStringsMax, cbNew); 1134 1134 if (!pvStringsNew) … … 1164 1164 1165 1165 /** @todo Optimize? The strings block is not very large though so probably not worth the effort. */ 1166 off += strlen(&pThis->paszStrings[off]) + 1;1166 off += (uint32_t)strlen(&pThis->paszStrings[off]) + 1; 1167 1167 } 1168 1168 1169 1169 /* Not found, need to insert. */ 1170 size_t cch =strlen(psz) + 1;1170 uint32_t cch = (uint32_t)strlen(psz) + 1; 1171 1171 int rc = rtFdtStringsEnsureSpace(pThis, cch); 1172 1172 if (RT_FAILURE(rc)) … … 1192 1192 return VINF_SUCCESS; 1193 1193 1194 size_t cbNew = RT_ALIGN_32(pThis->cbStruct + cbSpaceRequired, _1K);1194 uint32_t cbNew = RT_ALIGN_32(pThis->cbStruct + cbSpaceRequired, _1K); 1195 1195 void *pvStructNew = RTMemReallocZ(pThis->pbStruct, pThis->cbStructMax, cbNew); 1196 1196 if (!pvStructNew) … … 1249 1249 RTSgBufInit(&SgBuf, &aSegs[0], RT_ELEMENTS(aSegs)); 1250 1250 1251 return rtFdtStructAppendSg(pThis, &SgBuf, sizeof(u32Token) + cbPayload);1251 return rtFdtStructAppendSg(pThis, &SgBuf, sizeof(u32Token) + (uint32_t)cbPayload); 1252 1252 } 1253 1253
Note:
See TracChangeset
for help on using the changeset viewer.