Revision 506fa1a7 proto/ospf/lsalib.c

View differences:

proto/ospf/lsalib.c
240 240
    c1 %= 255;
241 241
  }
242 242

  
243
  x = ((length - LSA_CHECKSUM_OFFSET) * c0 - c1) % 255;
243
  x = (int)((length - LSA_CHECKSUM_OFFSET) * c0 - c1) % 255;
244 244
  if (x <= 0)
245 245
    x += 255;
246 246
  y = 510 - c0 - x;

Also available in: Unified diff