ObjFW  Check-in [f17bdd0722]

Overview
Comment:wint_t might be smaller than int so that integer promotions apply.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: f17bdd07226fb3d35c86068eeaca587a2e5edbfd4ea3d7f526105c05a4280ee7
User & Date: js on 2011-01-31 22:35:38
Other Links: manifest | tags
Context
2011-01-31
23:15
Work around glibc weirdness. check-in: 41af19cfbc user: js tags: trunk
22:35
wint_t might be smaller than int so that integer promotions apply. check-in: f17bdd0722 user: js tags: trunk
21:58
Fix missing spaces when using objfw-config --all. check-in: a94bef49d7 user: js tags: trunk
Changes

Modified src/of_asprintf.m from [07a6d8ae59] to [ebb2514163].

361
362
363
364
365
366
367

368
369




370
371
372
373
374
375
376
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381







+


+
+
+
+







	case 'c':
		switch (ctx->len_mod) {
		case LENGTH_MODIFIER_NONE:
			tmp_len = asprintf(&tmp, ctx->subfmt,
			    va_arg(ctx->args, int));
			break;
		case LENGTH_MODIFIER_L:
#if WINT_MAX >= INT_MAX
			tmp_len = asprintf(&tmp, ctx->subfmt,
			    va_arg(ctx->args, wint_t));
#else
			tmp_len = asprintf(&tmp, ctx->subfmt,
			    va_arg(ctx->args, int));
#endif
			break;
		default:
			return false;
		}

		break;
	case 's':