From 7069318f2c788bbac6e4a50d8c62c0e1df9c3609 Mon Sep 17 00:00:00 2001 From: Jeongho Nam Date: Tue, 14 Mar 2017 23:30:15 +0900 Subject: [PATCH] v1.4.3 --- .gitignore | 1 - src/std/Deque.ts | 4 ++-- src/std/Vector.ts | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 13b46bf8..3a6739eb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,6 @@ # ====================================================== # CUSTOM IGNORE # ====================================================== -.vscopde/ handbook/ lib/ diff --git a/src/std/Deque.ts b/src/std/Deque.ts index b46833c2..6615b636 100644 --- a/src/std/Deque.ts +++ b/src/std/Deque.ts @@ -542,10 +542,10 @@ namespace std // ERASE LAST ELEMENT let lastArray: Array = this.matrix_[this.matrix_.length - 1]; - lastArray.splice(lastArray.length - 1, 1); + lastArray.pop(); if (lastArray.length == 0 && this.matrix_.length > 1) - this.matrix_.splice(this.matrix_.length - 1, 1); + this.matrix_.pop(); // SHRINK SIZE this.size_--; diff --git a/src/std/Vector.ts b/src/std/Vector.ts index fc6d6f2a..f0b05fa2 100644 --- a/src/std/Vector.ts +++ b/src/std/Vector.ts @@ -568,7 +568,7 @@ namespace std */ public pop_back(): void { - this.erase(this.end().prev()); + this.data_.pop(); } /**