From 068d846fe4f627181a319418a17f6d54eb653999 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Fri, 21 Apr 2017 23:35:32 -0700 Subject: Fix a deficiency in the way types were handled in my ternary tree. Fixes in which some paths that were constructed from a template with variables would sometimes get an extra garbage character thrown in --- sms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sms.c') diff --git a/sms.c b/sms.c index 0ccac57..6993095 100644 --- a/sms.c +++ b/sms.c @@ -324,7 +324,7 @@ sms_context *alloc_configure_sms(system_media *media, uint32_t opts, uint8_t for sms->bank_regs[3] = 0x8000 >> 14; } - char * lowpass_cutoff_str = tern_find_path(config, "audio\0lowpass_cutoff\0").ptrval; + char * lowpass_cutoff_str = tern_find_path(config, "audio\0lowpass_cutoff\0", TVAL_PTR).ptrval; uint32_t lowpass_cutoff = lowpass_cutoff_str ? atoi(lowpass_cutoff_str) : 3390; //TODO: Detect region and pick master clock based off of that -- cgit v1.2.3