Author: [EMAIL PROTECTED]
Date: Mon Nov 24 03:28:20 2008
New Revision: 826
Modified:
branches/experimental/regexp2000/src/utils.h
Log:
Writing in non-CAN_READ_UNALIGNED mode works (and compiles).
Modified: branches/experimental/regexp2000/src/utils.h
==============================================================================
--- branches/experimental/regexp2000/src/utils.h (original)
+++ branches/experimental/regexp2000/src/utils.h Mon Nov 24 03:28:20 2008
@@ -538,7 +538,6 @@
#ifdef CAN_READ_UNALIGNED
*reinterpret_cast<uint16_t*>(pc) = value;
#else
- uint16_t word;
pc[1] = value;
pc[0] = value >> 8;
#endif
@@ -549,12 +548,10 @@
#ifdef CAN_READ_UNALIGNED
*reinterpret_cast<uint32_t*>(pc) = value;
#else
- uint32_t word;
pc[3] = value;
pc[2] = value >> 8;
pc[1] = value >> 16;
pc[0] = value >> 24;
- return word;
#endif
}
--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---