diff options
author | Erik Hanson <erik@slackbuilds.org> | 2010-05-12 23:29:18 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-12 23:29:18 +0200 |
commit | e1ea50212b57c7c82e455548ea70fa2455259658 (patch) | |
tree | 5c7d8a6d10e19828304866c824778dce478330f9 /games/einstein/patches/07_long.diff | |
parent | f790816ee157ce9c5c8589cc8bd24248c5f0e0fa (diff) | |
download | slackbuilds-e1ea50212b57c7c82e455548ea70fa2455259658.tar.gz |
games/einstein: Added to 12.2 repository
Diffstat (limited to 'games/einstein/patches/07_long.diff')
-rw-r--r-- | games/einstein/patches/07_long.diff | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/games/einstein/patches/07_long.diff b/games/einstein/patches/07_long.diff new file mode 100644 index 0000000000..76a35c4288 --- /dev/null +++ b/games/einstein/patches/07_long.diff @@ -0,0 +1,31 @@ +--- ../orig/einstein-2.0/formatter.cpp 2005-08-14 04:40:58.000000000 +0200 ++++ formatter.cpp 2007-08-31 08:42:16.000000000 +0200 +@@ -58,7 +58,7 @@ + if ((c.type == INT_ARG) || (c.type == STRING_ARG) || + (c.type == FLOAT_ARG) || (c.type == DOUBLE_ARG)) + { +- int no = (int)c.data; ++ long no = (long)c.data; + args[no - 1] = c.type; + } + } +@@ -123,7 +123,7 @@ + std::wstring Formatter::format(std::vector<ArgValue*> &argValues) const + { + std::wstring s; +- int no; ++ long no; + + for (int i = 0; i < commandsCnt; i++) { + Command *cmd = &commands[i]; +@@ -135,8 +135,8 @@ + + case STRING_ARG: + case INT_ARG: +- no = (int)cmd->data - 1; +- if (no < (int)argValues.size()) ++ no = (long)cmd->data - 1; ++ if (no < (long)argValues.size()) + s += argValues[no]->format(cmd); + break; + |