[Scummvm-git-logs] scummvm master -> e333fd0e9b4aa52f14597ad32ec6768f16030282
sev-
noreply at scummvm.org
Tue May 14 20:50:28 UTC 2024
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
e333fd0e9b DIRECTOR: Remove std::swap usage
Commit: e333fd0e9b4aa52f14597ad32ec6768f16030282
https://github.com/scummvm/scummvm/commit/e333fd0e9b4aa52f14597ad32ec6768f16030282
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2024-05-14T22:50:13+02:00
Commit Message:
DIRECTOR: Remove std::swap usage
Changed paths:
engines/director/lingo/lingodec/handler.cpp
diff --git a/engines/director/lingo/lingodec/handler.cpp b/engines/director/lingo/lingodec/handler.cpp
index 58b8ef9fbf5..121d6de4f06 100644
--- a/engines/director/lingo/lingodec/handler.cpp
+++ b/engines/director/lingo/lingodec/handler.cpp
@@ -659,7 +659,7 @@ uint32 Handler::translateBytecode(Bytecode &bytecode, uint32 index) {
break;
case kOpSwap:
if (stack.size() >= 2) {
- std::swap(stack[stack.size() - 1], stack[stack.size() - 2]);
+ SWAP(stack[stack.size() - 1], stack[stack.size() - 2]);
} else {
warning("kOpSwap: Stack too small!");
}
More information about the Scummvm-git-logs
mailing list