From 02d162858f10802bc2ca761329a3b2aa18ffef78 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Fri, 12 Jun 2009 09:56:46 -0400 Subject: [PATCH] Fix compiler errors under Fedora release candidate 11. --- Changes | 2 ++ src/V3PreProc.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Changes b/Changes index 26f32fe69..c7237a571 100644 --- a/Changes +++ b/Changes @@ -11,6 +11,8 @@ indicates the contributor was also the author of the fix; Thanks! **** Fix tristates causing "Assigned pin is neither...". [by Lane Brooks] +**** Fix compiler errors under Fedora release candidate 11. [Chitlesh Goorah] + * Verilator 3.710 2009/05/19 ** Verilator is now licensed under LGPL v3 and/or Artistic v2.0. diff --git a/src/V3PreProc.cpp b/src/V3PreProc.cpp index 84856dca4..4f76ba8be 100644 --- a/src/V3PreProc.cpp +++ b/src/V3PreProc.cpp @@ -990,7 +990,7 @@ int V3PreProcImp::getToken() { string V3PreProcImp::getline() { // Get a single line from the parse stream. Buffer unreturned text until the newline. if (isEof()) return ""; - char* rtnp; + const char* rtnp; bool gotEof = false; while (NULL==(rtnp=strchr(m_lineChars.c_str(),'\n')) && !gotEof) { int tok = getToken();