Browse Source

use unsigned types for sizes in lh_table and entries

pull/609/head
John Sonnenschein 5 years ago
parent
commit
cf95e998da
1 changed files with 3 additions and 4 deletions
  1. +3
    -4
      linkhash.h

+ 3
- 4
linkhash.h View File

@@ -18,7 +18,6 @@
*/
#ifndef _linkhash_h_
#define _linkhash_h_

#include "json_object.h"

#ifdef __cplusplus
@@ -92,7 +91,7 @@ struct lh_entry
* A flag for users of linkhash to know whether or not they
* need to free k.
*/
int k_is_constant;
unsigned int k_is_constant;
/**
* The value. Use lh_entry_v() instead of accessing this directly.
*/
@@ -115,11 +114,11 @@ struct lh_table
/**
* Size of our hash.
*/
int size;
size_t size;
/**
* Numbers of entries.
*/
int count;
unsigned int count;

/**
* The first entry.


Loading…
Cancel
Save