Changeset 411 for pwntcha/trunk


Ignore:
Timestamp:
Jan 4, 2005, 6:00:50 PM (16 years ago)
Author:
Sam Hocevar
Message:
  • use INT_MAX instead of 99999...
Location:
pwntcha/trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • pwntcha/trunk/src/phpbb.c

    r408 r411  
    1313#include <stdlib.h>
    1414#include <string.h>
     15#include <limits.h>
    1516
    1617#include "config.h"
     
    6364    {
    6465        /* Try to find 1st letter */
    65         distmin = 999999999;
     66        distmin = INT_MAX;
    6667        for(i = 0; i < 35; i++)
    6768        {
    68             int localmin = 99999999, localx, localy;
     69            int localmin = INT_MAX localx, localy;
    6970            xmin = i * 40;
    7071            ymin = 0;
  • pwntcha/trunk/src/slashdot.c

    r408 r411  
    1313#include <stdlib.h>
    1414#include <string.h>
     15#include <limits.h>
    1516#include <math.h>
    1617
     
    324325    {
    325326        /* Try to find 1st letter */
    326         distmin = 999999999;
     327        distmin = INT_MAX;
    327328        for(i = 0; i < 22; i++)
    328329        {
    329             int localmin = 99999999, localx, localy;
     330            int localmin = INT_MAX, localx, localy;
    330331//if(all[i] == 'i') continue;
    331332            xmin = glyphs[i].xmin;
  • pwntcha/trunk/src/test.c

    r400 r411  
    1313#include <stdlib.h>
    1414#include <string.h>
     15#include <limits.h>
    1516#include <math.h>
    1617
     
    9091    {
    9192        /* Try to find 1st letter */
    92         distmin = 999999999;
     93        distmin = INT_MAX;
    9394        for(i = 0; i < 35; i++)
    9495        {
    95             int localmin = 99999999, localx, localy;
     96            int localmin = INT_MAX, localx, localy;
    9697            xmin = i * 40;
    9798            ymin = 0;
Note: See TracChangeset for help on using the changeset viewer.