summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVladimir Glavnyy <31897320+vglavnyy@users.noreply.github.com>2020-06-10 13:35:07 +0700
committerGitHub <noreply@github.com>2020-06-09 23:35:07 -0700
commit4e45f7c9e8da64a9601eeba1231079c3ce0a6dc2 (patch)
tree06eaaed2700aa6940f0a1c9842e10787af10e789 /src
parent7ac0264053ff7adfbcf051fcc068e1b6d7325231 (diff)
downloadflatbuffers-4e45f7c9e8da64a9601eeba1231079c3ce0a6dc2.tar.gz
flatbuffers-4e45f7c9e8da64a9601eeba1231079c3ce0a6dc2.tar.bz2
flatbuffers-4e45f7c9e8da64a9601eeba1231079c3ce0a6dc2.zip
Fix error in SimpleQSort (#5955)
Diffstat (limited to 'src')
-rw-r--r--src/idl_parser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/idl_parser.cpp b/src/idl_parser.cpp
index 1bafd9b1..4749f365 100644
--- a/src/idl_parser.cpp
+++ b/src/idl_parser.cpp
@@ -1280,7 +1280,7 @@ void SimpleQsort(T *begin, T *end, size_t width, F comparator, S swapper) {
r -= width;
swapper(l, r);
} else {
- l++;
+ l += width;
}
}
l -= width;