Use uint32_t instead of int for the dynamic API

https://code.google.com/p/cld2/issues/detail?id=12



git-svn-id: https://cld2.googlecode.com/svn/trunk@160 b252ecd4-b096-bf77-eb8e-91563289f87e
This commit is contained in:
andrewhayden@google.com
2014-04-03 09:58:40 +00:00
parent d2ad115b8d
commit 3fced38754
5 changed files with 20 additions and 16 deletions

View File

@@ -17,6 +17,7 @@
// Updated 2014.01 for dual table lookup
//
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <string>
@@ -88,7 +89,7 @@ extern const short kAvgDeltaOctaScore[];
static bool dataSourceIsFile = false;
static ScoringTables* dynamicTables = NULL;
static void* mmapAddress = NULL;
static int mmapLength = 0;
static uint32_t mmapLength = 0;
bool isDataLoaded() { return dynamicDataLoaded; }
@@ -102,7 +103,7 @@ extern const short kAvgDeltaOctaScore[];
dynamicDataLoaded = true;
};
void loadDataFromRawAddress(const void* rawAddress, const int length) {
void loadDataFromRawAddress(const void* rawAddress, const uint32_t length) {
if (isDataLoaded()) {
unloadData();
}