Unverified Commit 2cfbf0df authored by Pascal Bühler's avatar Pascal Bühler Committed by GitHub

Merge pull request #378 from nils-ohlmeier/firefox_make_readonly_array_const

make read only arrays const
parents 5b5a656f fedb08bb
......@@ -53,7 +53,7 @@
#include "datatypes.h"
int octet_weight[256] = {
static const int8_t octet_weight[256] = {
0, 1, 1, 2, 1, 2, 2, 3, 1, 2, 2, 3, 2, 3, 3, 4, 1, 2, 2, 3, 2, 3, 3, 4,
2, 3, 3, 4, 3, 4, 4, 5, 1, 2, 2, 3, 2, 3, 3, 4, 2, 3, 3, 4, 3, 4, 4, 5,
2, 3, 3, 4, 3, 4, 4, 5, 3, 4, 4, 5, 4, 5, 5, 6, 1, 2, 2, 3, 2, 3, 3, 4,
......@@ -69,9 +69,7 @@ int octet_weight[256] = {
int octet_get_weight(uint8_t octet)
{
extern int octet_weight[256];
return octet_weight[octet];
return (int)octet_weight[octet];
}
/*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment