- Timestamp:
- Dec 10, 2008, 7:31:39 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/Environment/Sim2OS/src/Sim2OS_service_lseek.cpp
r81 r88 12 12 } 13 13 14 int flides = (int) arguments[1];15 off_t offset = (off_t) arguments[2];16 int whence = (int) arguments[3];14 int flides = static_cast<int >(reinterpret_cast<int64_t>(arguments[1])); 15 off_t offset = static_cast<off_t>(reinterpret_cast<int64_t>(arguments[2])); 16 int whence = static_cast<int >(reinterpret_cast<int64_t>(arguments[3])); 17 17 void * result = (void *) lseek(flides,offset,whence); 18 18 error = errno; … … 24 24 std::cout << "\toffset : " << (unsigned int) offset << std::endl; 25 25 std::cout << "\twhence : " << (unsigned int) whence << std::endl; 26 std::cout << "\tresult : " << (unsigned int) result<< std::endl;26 std::cout << "\tresult : " << static_cast<int32_t>(reinterpret_cast<int64_t>(result)) << std::endl; 27 27 std::cout << "\terrno : " << (unsigned int) error << std::endl; 28 28
Note: See TracChangeset
for help on using the changeset viewer.