Changeset 83a374d in buchla-68k


Ignore:
Timestamp:
11/12/2017 09:57:10 PM (6 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
ca867c1
Parents:
8438fb1
Message:

Fixed ctype.h.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/ctype.h

    r8438fb1 r83a374d  
    4141#pragma once
    4242
     43#include "stdint.h"
     44
    4345/* Digital Research / Alcyon C table definitions */
    4446
     
    7375#define iscsymf(c)      (isalpha(c) || (((c) & 0x7f) == 0x5f))
    7476
    75 #define toascii(c)      ((c) & 0x7f)
     77#define toascii(c)      ((int8_t)((c) & 0x7f))
    7678
    77 #define _toupper(c)     ((c) - 'a' + 'A')
    78 #define _tolower(c)     ((c) - 'A' + 'a')
     79#define _toupper(c)     ((int8_t)((c) - 'a' + 'A'))
     80#define _tolower(c)     ((int8_t)((c) - 'A' + 'a'))
Note: See TracChangeset for help on using the changeset viewer.