- 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_close.cpp
r81 r88 12 12 } 13 13 14 int fd = (int) arguments[1];14 int fd = static_cast<int>(reinterpret_cast<int64_t>(arguments[1])); 15 15 void * result = (void *) close(fd); 16 16 error = errno; … … 18 18 std::cout << "\n\t***** service : close *****" << std::endl; 19 19 std::cout << "\tfd : " << (unsigned int) fd << std::endl; 20 std::cout << "\tresult : " << (unsigned int) result<< std::endl;20 std::cout << "\tresult : " << static_cast<int32_t>(reinterpret_cast<int64_t>(result)) << std::endl; 21 21 std::cout << "\terrno : " << (unsigned int) error << std::endl; 22 22
Note: See TracChangeset
for help on using the changeset viewer.