Fixed typing errors(Visual Studio type checker sucks)

This commit is contained in:
Dmitriy Shishkov 2021-12-15 22:44:05 +03:00
parent 67386adad2
commit 1275c47676
No known key found for this signature in database
GPG Key ID: 14358F96FCDD8060
4 changed files with 7 additions and 2 deletions

View File

@ -1,6 +1,9 @@
#include <iostream> #include <iostream>
#include <locale> #include <locale>
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32) && !defined(__CYGWIN__)
#include <Windows.h> #include <Windows.h>
#endif
#include "../QRCodeLibrary/QRCode.hpp" #include "../QRCodeLibrary/QRCode.hpp"

View File

@ -56,9 +56,9 @@ private:
BitArray e; BitArray e;
}; };
template <typename T, unsigned N> template <typename T, size_t N>
constexpr unsigned upper_index(const array<T, N> arr, T val) { constexpr unsigned upper_index(const array<T, N> arr, T val) {
unsigned count = arr.size(), s = 0, e, step; unsigned count = arr.size(), s = 0, e = 0, step = 0;
while (count > 0) { while (count > 0) {
step = count / 2; step = count / 2;

View File

@ -1,5 +1,7 @@
#include "pch.h" #include "pch.h"
#include <algorithm>
#include "Method.hpp" #include "Method.hpp"
#include "Tables.hpp" #include "Tables.hpp"