Changeset 34597 in webkit for trunk/JavaScriptCore
- Timestamp:
- Jun 16, 2008, 6:29:21 AM (17 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r34593 r34597 1 2008-06-16 Adriaan de Groot <[email protected]> 2 3 Reviewed by Simon. 4 5 Fix compilation on Solaris 6 7 On some systems, munmap takes a char* instead of a void* (contrary to POSIX and 8 Single Unix Specification). Since you can always convert from char* to void* 9 but not vice-versa, do the casting to char*. 10 11 * kjs/collector.cpp: 12 (KJS::allocateBlock): 13 (KJS::freeBlock): 14 1 15 2008-06-16 Cameron Zwarich <[email protected]> 2 16 -
trunk/JavaScriptCore/kjs/collector.cpp
r34587 r34597 118 118 119 119 if (adjust > 0) 120 munmap(reinterpret_cast< void*>(address), adjust);120 munmap(reinterpret_cast<char*>(address), adjust); 121 121 122 122 if (adjust < extra) 123 munmap(reinterpret_cast< void*>(address + adjust + BLOCK_SIZE), extra - adjust);123 munmap(reinterpret_cast<char*>(address + adjust + BLOCK_SIZE), extra - adjust); 124 124 125 125 address += adjust; … … 139 139 free(block); 140 140 #else 141 munmap( block, BLOCK_SIZE);141 munmap(reinterpret_cast<char *>(block), BLOCK_SIZE); 142 142 #endif 143 143 }
Note:
See TracChangeset
for help on using the changeset viewer.