Author: [email protected]
Date: Tue Jul  7 02:29:41 2009
New Revision: 2368

Modified:
    branches/bleeding_edge/src/objects.h

Log:
Changed ?: into if/else to placate compiler.

Review URL: http://codereview.chromium.org/155131


Modified: branches/bleeding_edge/src/objects.h
==============================================================================
--- branches/bleeding_edge/src/objects.h        (original)
+++ branches/bleeding_edge/src/objects.h        Tue Jul  7 02:29:41 2009
@@ -3271,7 +3271,11 @@
    // Set implementation data after the object has been prepared.
    inline void SetDataAt(int index, Object* value);
    static int code_index(bool is_ascii) {
-    return is_ascii ? kIrregexpASCIICodeIndex : kIrregexpUC16CodeIndex;
+    if (is_ascii) {
+      return kIrregexpASCIICodeIndex;
+    } else {
+      return kIrregexpUC16CodeIndex;
+    }
    }

    static inline JSRegExp* cast(Object* obj);

--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to