mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-17 20:10:23 +03:00
* Change long to TLong.
This allows a potential linux port to become reality much easier.
This commit is contained in:
@@ -8,8 +8,11 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <cstring>
|
||||
#include <algorithm>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include "LongHack.hpp"
|
||||
|
||||
class Util
|
||||
{
|
||||
@@ -56,9 +59,9 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
static long hashCode(const std::string& str)
|
||||
static TLong hashCode(const std::string& str)
|
||||
{
|
||||
long result = 0;
|
||||
TLong result = 0;
|
||||
|
||||
for (auto chr : str)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user