[mythtv] PATCH: fix Mythweather compile with gcc 3.4.1+
Robert Hardy
rhardy at webcon.ca
Sun Aug 15 13:53:25 EDT 2004
Mythweather fails to compile using gcc-3.4.1. It complains line 643 is too
ambiguous. The following code fixes the compile however my grasp of this code
is limited so someone should make sure this doesn't change the meaning of the code.
diff -urNbB mythweather-0.15/mythweather/weather.cpp.orig mythweather-0.15/mythweather/weather.cpp
--- mythweather-0.15/mythweather/weather.cpp.orig 2004-08-06 03:34:35.000000000 -0400
+++ mythweather-0.15/mythweather/weather.cpp 2004-08-15 02:35:22.249294816 -0400
@@ -640,7 +640,7 @@
char temporary[1024];
char *hold;
- accidFile.seekg(startData + accidBreaks[curLetter + 26], ios::beg);
+ accidFile.seekg(static_cast<streamoff>(startData) + accidBreaks[curLetter + 26], ios::beg);
if (dat > 4)
{
Regards,
Rob
--
---------------------"Happiness is understanding."----------------------
Robert Hardy, B.Eng Computer Systems C.E.O. Webcon Inc.
rhardy <at> webcon <dot> ca GPG Key available (613) 276-7327
-------------- next part --------------
diff -urNbB mythweather-0.15/mythweather/weather.cpp.orig mythweather-0.15/mythweather/weather.cpp
--- mythweather-0.15/mythweather/weather.cpp.orig 2004-08-06 03:34:35.000000000 -0400
+++ mythweather-0.15/mythweather/weather.cpp 2004-08-15 02:35:22.249294816 -0400
@@ -640,7 +640,7 @@
char temporary[1024];
char *hold;
- accidFile.seekg(startData + accidBreaks[curLetter + 26], ios::beg);
+ accidFile.seekg(static_cast<streamoff>(startData) + accidBreaks[curLetter + 26], ios::beg);
if (dat > 4)
{
More information about the mythtv-dev
mailing list