Changeset f41682c in mainline


Ignore:
Timestamp:
2011-08-20T13:36:49Z (13 years ago)
Author:
Martin Sucha <sucha14@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
22cf42d9, 4e6577c
Parents:
b2727f18
Message:

Fix build on 64-bit platforms

Location:
uspace/app/bdsh
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/tok.c

    rb2727f18 rf41682c  
    224224wchar_t tok_look_char(tokenizer_t *tok)
    225225{
    226         unsigned int old_offset = tok->in_offset;
    227         unsigned int old_char_offset = tok->in_char_offset;
     226        size_t old_offset = tok->in_offset;
     227        size_t old_char_offset = tok->in_char_offset;
    228228        wchar_t ret = tok_get_char(tok);
    229229        tok->in_offset = old_offset;
  • uspace/app/bdsh/tok.h

    rb2727f18 rf41682c  
    3838typedef struct {
    3939        char *text;
    40         unsigned int byte_start;
    41         unsigned int char_start;
     40        size_t byte_start;
     41        size_t char_start;
    4242        size_t byte_length;
    4343        size_t char_length;
     
    4747typedef struct {
    4848        char *in;
    49         unsigned int in_offset;
    50         unsigned int last_in_offset;
    51         unsigned int in_char_offset;
    52         unsigned int last_in_char_offset;
     49        size_t in_offset;
     50        size_t last_in_offset;
     51        size_t in_char_offset;
     52        size_t last_in_char_offset;
    5353       
    5454        char *outbuf;
Note: See TracChangeset for help on using the changeset viewer.