Changeset 32236e5 in mainline for uspace/lib/c/Makefile


Ignore:
Timestamp:
2019-01-01T19:45:58Z (5 years ago)
Author:
Vojtech Horky <vojtech.horky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
713ba400
Parents:
7e85d2b
Message:

Add can_cast_size_t_to_int

There are already several places where we check that it is okay to cast
size_t value to int. This function should unify these places to replace
non-trivial code with a simple function call.

Also added a (hopefully correct) test for this function.

More functions should be added on-demand basis.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/Makefile

    r7e85d2b r32236e5  
    188188TEST_SOURCES = \
    189189        test/adt/circ_buf.c \
     190        test/casting.c \
    190191        test/fibril/timer.c \
    191192        test/main.c \
Note: See TracChangeset for help on using the changeset viewer.