Exemple #1
0
def fixed(value):
    return c_int32(carbon.Long2Fix(c_long(int(value))))
Exemple #2
0
def fixed(value):
    # This is a guess... could easily be wrong
    #return c_int32(int(value) * (1 << 16))

    return c_int32(carbon.Long2Fix(c_long(int(value))))