Author: [EMAIL PROTECTED]
Date: Tue Oct 28 15:47:51 2008
New Revision: 631
Modified:
branches/bleeding_edge/src/variables.cc
branches/bleeding_edge/src/variables.h
Log:
Fix compile failure with very strict gcc warning rules on Linux.
TBR=kasperl
Review URL: http://codereview.chromium.org/8857
Modified: branches/bleeding_edge/src/variables.cc
==============================================================================
--- branches/bleeding_edge/src/variables.cc (original)
+++ branches/bleeding_edge/src/variables.cc Tue Oct 28 15:47:51 2008
@@ -88,7 +88,7 @@
// Implementation StaticType.
-char* StaticType::Type2String(StaticType* type) {
+const char* StaticType::Type2String(StaticType* type) {
switch (type->kind_) {
case UNKNOWN:
return "UNKNOWN";
Modified: branches/bleeding_edge/src/variables.h
==============================================================================
--- branches/bleeding_edge/src/variables.h (original)
+++ branches/bleeding_edge/src/variables.h Tue Oct 28 15:47:51 2008
@@ -83,7 +83,7 @@
kind_ = other->kind_;
}
- static char* Type2String(StaticType* type);
+ static const char* Type2String(StaticType* type);
// LIKELY_SMI accessors
void SetAsLikelySmi() {
--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---