Changeset 1908

Show
Ignore:
Timestamp:
08/15/2007 09:49:15 AM (14 months ago)
Author:
jan
Message:

make sure that hash-function always uses a 32bit int (fixes #1279)

Location:
branches/lighttpd-1.4.x
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/lighttpd-1.4.x/NEWS

    r1900 r1908  
    66- 1.4.17 - 
    77  * fixed hardcoded font-sizes in mod_dirlisting (#1267) 
     8  * fixed different ETag length on 32/64 platforms (#1279) 
    89 
    910- 1.4.16 -  
  • branches/lighttpd-1.4.x/src/etag.c

    r1880 r1908  
    11#include <string.h> 
     2#include <stdint.h> 
    23 
    34#include "buffer.h" 
     
    3233 
    3334int etag_mutate(buffer *mut, buffer *etag) { 
    34         size_t h, i; 
     35        size_t i; 
     36        uint32_t h; 
    3537 
    3638        for (h=0, i=0; i < etag->used; ++i) h = (h<<5)^(h>>27)^(etag->ptr[i]);