]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - prvm_cmds.c
Fix signed int overflows and tidy nearby documentation
[xonotic/darkplaces.git] / prvm_cmds.c
index 6bc211c66cacfd5bc3ca5820864dde82dafabaab..9a4e692173405cfc46b681abd3de2ff34dd6a672 100644 (file)
@@ -1753,7 +1753,7 @@ float     registercvar (string name, string value[, float flags])
 void VM_registercvar(prvm_prog_t *prog)
 {
        const char *name, *value;
-       int     flags;
+       unsigned flags;
 
        VM_SAFEPARMCOUNTRANGE(2, 3, VM_registercvar);
 
@@ -3881,7 +3881,7 @@ static int BufStr_SortStringsDOWN (const void *in1, const void *in2)
        return strncmp(b, a, stringbuffers_sortlength);
 }
 
-prvm_stringbuffer_t *BufStr_FindCreateReplace (prvm_prog_t *prog, int bufindex, int flags, const char *format)
+prvm_stringbuffer_t *BufStr_FindCreateReplace (prvm_prog_t *prog, int bufindex, unsigned flags, const char *format)
 {
        prvm_stringbuffer_t *stringbuffer;
        int i;