Use of sized ints

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We have recently discussed the use of the bool type. What about sized int types? What is the policy here?

Notably, on a part of the code I’m presently working on, I saw that surface_id could be either an int or an uint32_t. There is apparently no clear winner:

$ git grep "int.*surface_id" | wc
     141     659   12350
$ git grep "uint32.*surface_id" | wc
      89     434    8182

So this means roughly 63% uint32 and 36% “other ints”…

In your opinion, for new code, should I use unsigned, int or uint32 for a surface_id parameter? (My personal vote would be unsigned)


Christophe
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]